/* noto-sans-arabic-arabic-400-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_next/static/media/noto-sans-arabic-arabic-400-normal.AAMxebZb.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-arabic-400-normal.hsqIUL9Q.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-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;
}

/* noto-sans-arabic-math-400-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_next/static/media/noto-sans-arabic-math-400-normal.BxrVu-ji.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-math-400-normal.BiWGKoY7.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  unicode-range: U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF;
}

/* noto-sans-arabic-symbols-400-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_next/static/media/noto-sans-arabic-symbols-400-normal.BbP0vlM-.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-symbols-400-normal.BJzmBRSy.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  unicode-range: U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF;
}

/* noto-sans-arabic-latin-ext-400-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_next/static/media/noto-sans-arabic-latin-ext-400-normal.CW3XQ4Yj.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-latin-ext-400-normal.D4Wl3hq7.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  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;
}

/* noto-sans-arabic-latin-400-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_next/static/media/noto-sans-arabic-latin-400-normal.CjsIS08k.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-latin-400-normal.lr8cikIT.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  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;
}/* noto-sans-arabic-arabic-600-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_next/static/media/noto-sans-arabic-arabic-600-normal.JPxwL-XU.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-arabic-600-normal.JLzruTOp.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-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;
}

/* noto-sans-arabic-math-600-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_next/static/media/noto-sans-arabic-math-600-normal.C2PaYQVA.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-math-600-normal.BQnKH7M_.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  unicode-range: U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF;
}

/* noto-sans-arabic-symbols-600-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_next/static/media/noto-sans-arabic-symbols-600-normal.BLWpRi3R.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-symbols-600-normal.Ch3HzCxt.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  unicode-range: U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF;
}

/* noto-sans-arabic-latin-ext-600-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_next/static/media/noto-sans-arabic-latin-ext-600-normal.6_GPoF44.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-latin-ext-600-normal.Be-B9uOG.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  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;
}

/* noto-sans-arabic-latin-600-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_next/static/media/noto-sans-arabic-latin-600-normal.BUFr-ZM9.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-latin-600-normal.D8ZQ8Cfs.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  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;
}/* noto-sans-arabic-arabic-700-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_next/static/media/noto-sans-arabic-arabic-700-normal.3CqrwsiZ.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-arabic-700-normal.DXnsSW3z.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  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,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-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;
}

/* noto-sans-arabic-math-700-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_next/static/media/noto-sans-arabic-math-700-normal.DhwRdyuq.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-math-700-normal.C3IT52xG.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  unicode-range: U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF;
}

/* noto-sans-arabic-symbols-700-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_next/static/media/noto-sans-arabic-symbols-700-normal.D40a2DlB.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-symbols-700-normal.Ct3Gyvbr.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  unicode-range: U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF;
}

/* noto-sans-arabic-latin-ext-700-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_next/static/media/noto-sans-arabic-latin-ext-700-normal.wF0ZdkCd.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-latin-ext-700-normal.DX5dIs2j.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  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;
}

/* noto-sans-arabic-latin-700-normal */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_next/static/media/noto-sans-arabic-latin-700-normal.D41hNJFR.woff2?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff2'), url(/_next/static/media/noto-sans-arabic-latin-700-normal.DST6Nu2E.woff?dpl=30f40c21994b45a8b183b7650d8114ef) format('woff');
  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;
}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-block {
    display: inline-block;
  }

  .table {
    display: table;
  }

  .grow {
    flex-grow: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .rounded {
    border-radius: .25rem;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }
}

:root {
  --cobalt: #0a38c8;
  --cobalt-deep: #082baa;
  --cobalt-dark: #061a65;
  --ink: #080c11;
  --ink-lift: #11171d;
  --saffron: #ffbf19;
  --saffron-pale: #ffd760;
  --success: #2d722b;
  --success-pale: #e5f3df;
  --paper: #f8f9fb;
  --white: #fff;
  --cobalt-tint: #b9c9ff;
  --ink-tint: #bec5cc;
  --line-light: #d9deea;
  --font-display: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-ui: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-arabic: "Noto Naskh Arabic", "Geeza Pro", "Damascus", "Noto Sans Arabic", serif;
  --app-vh: 100vh;
  --theme-canvas: #f8f9fb;
  --theme-surface: #fff;
  --theme-surface-raised: #fff;
  --theme-text: #080c11;
  --theme-muted: #526077;
  --theme-border: #d9deea;
}

html[data-theme="dark"] {
  --paper: #0b1016;
  --line-light: #2b3540;
  --success-pale: #13271a;
  --theme-canvas: #080c11;
  --theme-surface: #0e151c;
  --theme-surface-raised: #141c24;
  --theme-text: #f6f8fb;
  --theme-muted: #c0cad4;
  --theme-subtle: #9ba8b5;
  --theme-link: #a9bcff;
  --theme-success-text: #8ce092;
  --theme-warning-text: #ffd760;
  --theme-danger-text: #ffaaa2;
  --theme-disabled: #8f9ca9;
  --theme-border: #2f3a45;
  color-scheme: dark;
}

@supports (height: 100dvh) {
  :root {
    --app-vh: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-width: 320px;
}

body {
  min-height: var(--app-vh);
  background: var(--theme-canvas);
  color: var(--theme-text);
  font-family: var(--font-ui);
  text-rendering: optimizelegibility;
  margin: 0;
}

button, a, input, textarea, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--ink);
}

.site-header {
  background: var(--cobalt-deep);
  color: var(--white);
  height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(clamp(24px, 3vw, 54px), env(safe-area-inset-right)) 0 max(clamp(24px, 3vw, 54px), env(safe-area-inset-left));
  z-index: 20;
  border-bottom: 1px solid #ffffff4d;
  justify-content: space-between;
  align-items: center;
  display: flex;
  position: relative;
}

.wordmark {
  --wordmark-height: 30px;
  color: var(--white);
  line-height: 1;
  display: inline-flex;
}

.brand-wordmark {
  aspect-ratio: 163 / 30;
  height: var(--wordmark-height);
  display: block;
  position: relative;
  overflow: hidden;
}

.brand-wordmark-readable {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.brand-wordmark-visible {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}

.site-header nav {
  gap: clamp(24px, 3vw, 48px);
  display: flex;
}

.site-header nav a {
  border-bottom: 1px solid #0000;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-size: .9rem;
  display: flex;
}

.site-header nav a:hover {
  border-bottom-color: var(--saffron);
}

.hero {
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  min-height: 640px;
  display: grid;
}

.hero-promise {
  background: var(--cobalt);
  color: var(--white);
  min-height: 640px;
  padding: clamp(58px, 7vh, 84px) clamp(32px, 4vw, 64px) 64px;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  z-index: 2;
  max-width: 540px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  margin: 0;
  font-size: clamp(4.25rem, 5vw, 4.85rem);
  font-weight: 700;
  line-height: .88;
}

.hero h1 span {
  display: block;
}

.hero-copy > p {
  color: var(--cobalt-tint);
  max-width: 42ch;
  margin: 30px 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-copy em {
  color: var(--white);
  font-style: normal;
}

.primary-action {
  background: var(--saffron);
  color: var(--ink);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  min-height: 68px;
  margin-top: 36px;
  padding: 0 24px 0 30px;
  font-weight: 700;
  transition: background-color .18s ease-out, gap .18s ease-out;
  display: inline-flex;
}

.primary-action svg, .teacher-band a svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
}

.primary-action:hover {
  background: var(--saffron-pale);
  gap: 56px;
}

.promise-letter {
  fill: #051a6557;
  font-family: var(--font-arabic);
  width: 36%;
  height: 70%;
  font-size: 19rem;
  position: absolute;
  top: 40px;
  right: -26px;
}

.promise-acoustics {
  fill: none;
  stroke: #ffffffa8;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  stroke-width: 1.5px;
  width: 72%;
  height: 36%;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.promise-acoustics .signal {
  stroke: var(--saffron);
  stroke-dasharray: none;
  stroke-width: 2px;
}

@keyframes home-copy-arrive {
  from {
    clip-path: inset(0 0 18%);
    filter: blur(5px);
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    clip-path: inset(0);
    filter: blur();
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-letter-settle {
  from {
    opacity: 0;
    transform: translateX(36px) rotate(3deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes home-signal-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes home-path-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes home-ledger-row-arrive {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes home-ribbon-card-arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1, .hero-copy > p, .hero-copy > .primary-action {
    animation: .72s cubic-bezier(.16, 1, .3, 1) both home-copy-arrive;
  }

  .hero-copy > p {
    animation-duration: .62s;
    animation-delay: .14s;
  }

  .hero-copy > .primary-action {
    animation-duration: .52s;
    animation-delay: .23s;
  }

  .promise-letter {
    transform-origin: center;
    animation: .8s cubic-bezier(.16, 1, .3, 1) .1s both home-letter-settle;
  }

  .promise-acoustics .signal {
    stroke-dasharray: 520;
    stroke-dashoffset: 520px;
    animation: .9s cubic-bezier(.16, 1, .3, 1) .32s forwards home-signal-draw;
  }

  .practice-path > path {
    stroke-dasharray: 1300;
    stroke-dashoffset: 1300px;
    animation: 1.1s cubic-bezier(.16, 1, .3, 1) .26s forwards home-path-draw;
  }

  .practice-path > path:nth-of-type(2) {
    animation-delay: .42s;
  }

  .landing-motion-ready [data-scroll-reveal] {
    clip-path: inset(0);
    opacity: 0;
    transition: clip-path .72s cubic-bezier(.16, 1, .3, 1), opacity .58s ease-out, transform .72s cubic-bezier(.16, 1, .3, 1);
    transform: translateY(30px);
  }

  .landing-motion-ready [data-reveal-style="clip"] {
    clip-path: inset(0 0 12%);
    transform: translateY(18px);
  }

  .landing-motion-ready [data-reveal-style="path"] {
    transform: translateX(30px);
  }

  .landing-motion-ready [data-reveal-style="contrast"] {
    clip-path: inset(0 0 16%);
    transform: translateY(20px);
  }

  .landing-motion-ready [data-scroll-reveal][data-reveal-state="visible"] {
    clip-path: inset(0);
    opacity: 1;
    transform: translate(0);
  }

  .landing-motion-ready [data-reveal-style="ledger"] article, .landing-motion-ready [data-reveal-style="ribbon"] article {
    opacity: 0;
  }

  .landing-motion-ready [data-reveal-style="ledger"][data-reveal-state="visible"] article {
    animation: .48s cubic-bezier(.16, 1, .3, 1) both home-ledger-row-arrive;
  }

  .landing-motion-ready [data-reveal-style="ribbon"][data-reveal-state="visible"] article {
    animation: .44s cubic-bezier(.16, 1, .3, 1) both home-ribbon-card-arrive;
  }

  .landing-motion-ready [data-reveal-state="visible"] article:nth-child(2) {
    animation-delay: 70ms;
  }

  .landing-motion-ready [data-reveal-state="visible"] article:nth-child(3) {
    animation-delay: .14s;
  }

  .landing-motion-ready [data-reveal-state="visible"] article:nth-child(4) {
    animation-delay: .21s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1, .hero-copy > p, .hero-copy > .primary-action, .promise-letter, .promise-acoustics .signal, .practice-path > path, [data-scroll-reveal], [data-scroll-reveal] article {
    clip-path: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

.speaking-demo {
  background: var(--ink);
  color: var(--white);
  min-height: 640px;
  padding: 54px clamp(28px, 4vw, 68px) 24px;
  position: relative;
  overflow: hidden;
}

.speaking-demo:before, .speaking-demo:after {
  content: "";
  pointer-events: none;
  border: 1px dotted #ffbf1933;
  border-radius: 50%;
  width: 94%;
  height: 650px;
  position: absolute;
  top: -180px;
  left: 3%;
}

.speaking-demo:after {
  width: 72%;
  height: 530px;
  top: -110px;
  left: 14%;
}

.practice-path {
  fill: none;
  pointer-events: none;
  height: 92%;
  stroke: var(--saffron);
  stroke-linecap: round;
  stroke-width: 3px;
  z-index: 1;
  width: 96%;
  position: absolute;
  inset: 2% 2% auto;
}

.practice-path marker path {
  fill: var(--saffron);
}

.demo-station, .phrase-focus, .demo-bottom-row, .privacy-note {
  z-index: 3;
  position: relative;
}

.demo-station > p {
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  display: flex;
}

.demo-station > p span {
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--font-ui);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: .84rem;
  display: inline-flex;
}

.listen-station {
  max-width: 470px;
  margin: 0 auto;
}

.listen-station > button {
  background: var(--ink-lift);
  color: var(--white);
  cursor: pointer;
  border: 1px solid #485059;
  border-radius: 15px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 0 18px;
  display: flex;
}

.round-icon {
  border: 2px solid var(--saffron);
  color: var(--saffron);
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  display: inline-flex;
}

.round-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  width: 25px;
  height: 25px;
}

.round-icon svg rect {
  fill: none;
}

.audio-wave {
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 2px;
  height: 48px;
  margin: 0 16px;
  display: flex;
}

.audio-wave i {
  background: var(--saffron);
  opacity: .85;
  width: 2px;
  min-height: 4px;
  max-height: 38px;
  animation: 1.7s cubic-bezier(.16, 1, .3, 1) infinite alternate wave-breathe;
  display: block;
}

.audio-wave i:nth-child(3n) {
  animation-delay: -500ms;
}

.audio-wave i:nth-child(4n) {
  animation-delay: -900ms;
}

.listen-station small {
  color: var(--ink-tint);
}

.phrase-focus {
  text-align: center;
  margin: 28px auto 14px;
}

.phrase-focus h2 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  text-wrap: nowrap;
  margin: 0;
  font-size: clamp(2.65rem, 4.8vw, 5.25rem);
  font-weight: 600;
  line-height: 1.4;
}

.phrase-focus > p {
  color: var(--ink-tint);
  margin: 5px 0 0;
  font-size: .76rem;
}

.phrase-focus > .phrase-translation {
  color: var(--white);
  letter-spacing: -.01em;
  margin-top: 7px;
  font-size: .92rem;
  font-weight: 700;
}

.pronunciation-track {
  border-top: 1px dashed #ffbf19cc;
  justify-content: space-around;
  align-items: flex-start;
  max-width: 480px;
  height: 14px;
  margin: -4px auto 0;
  display: flex;
}

.pronunciation-track i {
  background: var(--saffron);
  width: 1px;
  height: 10px;
}

.demo-bottom-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 16px;
  display: grid;
}

.speak-station .microphone-control {
  margin: 4px auto 18px;
}

.speak-station form {
  margin-top: 10px;
}

.speak-station label {
  color: var(--ink-tint);
  margin-bottom: 6px;
  font-size: .68rem;
  display: block;
}

.speak-station form > div {
  display: flex;
}

.speak-station input {
  color: var(--white);
  font-family: var(--font-arabic);
  background: #171e25;
  border: 1px solid #485059;
  border-radius: 10px 0 0 10px;
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  font-size: 1rem;
}

.speak-station input::placeholder {
  color: #a9b1b8;
}

.speak-station form button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  border-radius: 0 10px 10px 0;
  padding: 0 14px;
  font-size: .72rem;
  font-weight: 700;
}

.guidance-result {
  background: var(--ink-lift);
  border: 1px solid #485059;
  border-radius: 15px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px 16px;
  display: grid;
}

.guidance-result > strong {
  border: 2px solid var(--saffron);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.25rem;
  display: flex;
}

.guidance-result > p {
  color: var(--ink-tint);
  margin: 0;
  font-size: .77rem;
  line-height: 1.42;
}

.guidance-result.result > p {
  color: var(--white);
}

.guidance-result.error {
  border-color: var(--saffron);
}

.guidance-station > small {
  color: #a9b1b8;
  margin-top: 8px;
  font-size: .64rem;
  line-height: 1.4;
  display: block;
}

.privacy-note {
  color: #a9b1b8;
  text-align: center;
  margin: 12px 0 0;
  font-size: .58rem;
  line-height: 1.4;
}

.privacy-note strong, .lesson-privacy strong, .speaking-review-note strong, .vocab-recording-note strong {
  color: var(--saffron);
  margin-bottom: 4px;
  font-size: .72rem;
  display: block;
}

.privacy-note a, .lesson-privacy a, .speaking-review-note a, .vocab-recording-note a {
  color: var(--saffron);
  text-underline-offset: 3px;
  margin-bottom: 5px;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: underline;
  display: block;
}

.platform-offer {
  background: var(--white);
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(56px, 8vw, 140px);
  padding: clamp(88px, 10vw, 144px) clamp(28px, 7vw, 110px);
  display: grid;
}

.offer-intro {
  align-self: start;
  position: sticky;
  top: 40px;
}

.offer-intro > h2 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3.5rem, 5.6vw, 5.8rem);
  font-weight: 600;
  line-height: .9;
}

.offer-intro > p {
  color: #465269;
  max-width: 49ch;
  margin: 32px 0 0;
  line-height: 1.7;
}

.offer-access {
  background: var(--cobalt);
  color: var(--white);
  margin-top: 46px;
  padding: 26px 28px 24px;
}

.offer-access strong {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  font-size: 1.45rem;
  display: block;
}

.offer-access span {
  color: var(--cobalt-tint);
  margin-top: 8px;
  font-size: .78rem;
  line-height: 1.55;
  display: block;
}

.offer-access a {
  border-top: 1px solid #ffffff47;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
}

.offer-access a svg, .offer-ledger a svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  flex: none;
}

.offer-ledger {
  border-top: 1px solid #aeb7cb;
}

.offer-ledger article {
  border-bottom: 1px solid #aeb7cb;
  grid-template-columns: minmax(190px, .95fr) minmax(240px, 1.1fr);
  align-items: center;
  gap: 30px;
  padding: 34px 0;
  transition: background-color .18s ease-out;
  display: grid;
}

.offer-ledger article > div > span {
  color: var(--cobalt);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: .68rem;
  font-weight: 700;
  display: block;
}

.offer-ledger h3 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  max-width: 13ch;
  margin: 0;
  font-size: clamp(1.85rem, 2.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
}

.offer-ledger article > p {
  color: #465269;
  max-width: 48ch;
  margin: 0;
  font-size: .82rem;
  line-height: 1.65;
}

.offer-ledger article > a {
  color: var(--cobalt-deep);
  grid-column: 2;
  justify-self: start;
  align-items: center;
  gap: 14px;
  margin-top: -14px;
  padding: 8px 0;
  font-size: .76rem;
  font-weight: 700;
  display: flex;
}

@media (hover: hover) {
  .offer-ledger article:hover {
    background: var(--paper);
  }

  .offer-access a:hover, .offer-ledger article > a:hover {
    color: var(--saffron);
  }
}

.practice-sequence {
  background: var(--paper);
  padding: 32px clamp(24px, 3.5vw, 56px) 48px;
}

.sequence-heading {
  border-bottom: 1px solid #aeb7cb;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 18px;
  display: flex;
}

.sequence-heading h2 {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
}

.sequence-heading p {
  color: #536078;
  margin: 0;
  font-size: .76rem;
}

.sequence-row {
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 34px;
  padding-top: 20px;
  display: grid;
}

.book-marker {
  background: var(--cobalt);
  color: var(--white);
  min-height: 195px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.book-marker:after {
  content: "";
  border: 1px dotted #ffffffb3;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  position: absolute;
  bottom: -65px;
  right: -45px;
}

.book-marker span {
  color: var(--saffron);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.book-marker strong {
  font-family: var(--font-display);
  margin-top: 22px;
  font-size: 4.25rem;
  font-weight: 600;
  line-height: 1;
  display: block;
}

.book-marker i {
  background: #ffffff80;
  width: 36px;
  height: 2px;
  margin-top: 14px;
  display: block;
}

.sequence-list {
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 0;
  min-width: 820px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  display: grid;
}

.sequence-list li {
  border-bottom: 1px solid #b7c0d3;
  padding: 0 18px 22px;
  position: relative;
}

.sequence-list li:not(:last-child):after {
  content: "";
  border-top: 1px solid #9ba7bf;
  border-right: 1px solid #9ba7bf;
  width: 10px;
  height: 10px;
  position: absolute;
  top: 86px;
  right: -4px;
  transform: rotate(45deg);
}

.sequence-label {
  align-items: center;
  gap: 10px;
  display: flex;
}

.sequence-label > span {
  background: var(--cobalt);
  color: var(--white);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
}

.sequence-label h3 {
  margin: 0;
  font-size: .82rem;
}

.sequence-visual {
  background: #eef1f7;
  border-radius: 14px;
  align-items: center;
  height: 76px;
  margin-top: 18px;
  padding: 12px;
  display: flex;
}

.sequence-icon {
  border: 2px solid var(--cobalt);
  color: var(--cobalt);
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  display: flex;
}

.sequence-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7px;
}

.mini-wave {
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 3px;
  display: flex;
}

.mini-wave i {
  background: var(--cobalt);
  width: 2px;
  display: block;
}

.sequence-list li > p {
  color: #5a667d;
  max-width: 23ch;
  margin: 10px 0 0;
  font-size: .67rem;
  line-height: 1.45;
}

.companion-story {
  background: var(--white);
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(60px, 8vw, 150px);
  padding: clamp(90px, 12vw, 165px) clamp(28px, 7vw, 110px);
  display: grid;
}

.companion-intro h2 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.25rem, 5.3vw, 5.8rem);
  font-weight: 600;
  line-height: .92;
}

.companion-intro > p {
  color: #465269;
  max-width: 48ch;
  margin: 34px 0 0;
  line-height: 1.7;
}

.story-path {
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  display: grid;
}

.story-path article {
  border-top: 3px solid var(--cobalt);
  align-self: stretch;
  padding-top: 24px;
}

.story-path article:last-child {
  border-top-color: var(--saffron);
}

.story-path article span {
  color: var(--cobalt);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
}

.story-path h3 {
  font-family: var(--font-display);
  margin: 42px 0 18px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.story-path p {
  color: #465269;
  margin: 0;
  font-size: .84rem;
  line-height: 1.6;
}

.story-path svg {
  fill: none;
  stroke: var(--cobalt);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  width: 100%;
}

.unit-preview {
  background: var(--cobalt);
  color: var(--white);
  padding: clamp(74px, 9vw, 130px) 0 0;
  overflow: hidden;
}

.unit-heading {
  padding: 0 clamp(28px, 7vw, 110px) 70px;
}

.unit-heading h2 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 10.5ch;
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 6rem);
  font-weight: 600;
  line-height: .92;
}

.unit-context {
  color: var(--cobalt-tint);
  max-width: 54ch;
  margin: 28px 0 0;
  line-height: 1.6;
}

.unit-context strong {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.word-ribbon {
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  display: grid;
  overflow-x: auto;
}

.word-ribbon article {
  background: var(--white);
  border-right: 1px solid var(--line-light);
  color: var(--ink);
  min-height: 300px;
  padding: 42px clamp(26px, 3vw, 46px);
}

.word-ribbon article:nth-child(2n) {
  background: var(--ink);
  color: var(--white);
}

.word-ribbon article:last-child {
  background: var(--saffron);
  color: var(--ink);
}

.word-arabic {
  font-family: var(--font-arabic);
  min-height: 88px;
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.55;
}

.word-transliteration {
  opacity: .72;
  border-top: 1px solid;
  margin: 38px 0 0;
  padding-top: 16px;
  font-size: .76rem;
}

.word-english {
  font-family: var(--font-display);
  margin: 8px 0 0;
  font-size: 1.55rem;
  font-weight: 600;
}

.teacher-band {
  background: var(--ink);
  color: var(--white);
  justify-content: space-between;
  align-items: end;
  gap: 80px;
  padding: clamp(76px, 10vw, 140px) clamp(28px, 7vw, 110px);
  display: flex;
}

.teacher-band h2 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  font-weight: 600;
  line-height: .92;
}

.teacher-band p {
  color: var(--ink-tint);
  max-width: 58ch;
  margin: 28px 0 0;
  line-height: 1.65;
}

.teacher-band > a {
  border-bottom: 2px solid var(--saffron);
  color: var(--saffron);
  flex: none;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  font-weight: 700;
  display: flex;
}

.legal-footer {
  background: var(--ink);
  color: var(--white);
  padding: 34px max(clamp(28px, 7vw, 110px), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(clamp(28px, 7vw, 110px), env(safe-area-inset-left));
  border-top: 1px solid #343b43;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: end;
  gap: 32px 60px;
  display: grid;
}

.legal-footer-brand {
  gap: 30px;
  max-width: 850px;
  display: flex;
}

.legal-footer-brand > p {
  color: #aeb6be;
  max-width: 70ch;
  margin: 0;
  font-size: .82rem;
  line-height: 1.55;
}

.legal-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  display: flex;
}

.legal-footer nav a {
  color: var(--ink-tint);
  border-bottom: 1px solid #0000;
  padding: 8px 0;
  font-size: .82rem;
}

.legal-footer nav a:hover {
  border-bottom-color: var(--saffron);
  color: var(--white);
}

.legal-footer-meta {
  color: #aeb6be;
  border-top: 1px solid #343b43;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  font-size: .82rem;
}

@keyframes wave-breathe {
  from {
    opacity: .55;
    transform: scaleY(.55);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes mic-listening-pulse {
  0% {
    opacity: .55;
    transform: scale(.92);
  }

  70%, 100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes mic-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes audio-playing-pulse {
  0% {
    opacity: .5;
    transform: scale(.92);
  }

  70%, 100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes speaker-wave-live {
  from {
    opacity: .28;
    transform: scale(.78);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (hover: hover) {
  .listen-station > button, .speak-station form button {
    transition: background-color .16s ease-out, border-color .16s ease-out;
  }

  .listen-station > button:hover {
    border-color: var(--saffron);
    background: #182129;
  }

  .speak-station form button:hover {
    background: var(--saffron-pale);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 38% 62%;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 6vw, 5rem);
  }

  .speaking-demo {
    padding-left: 28px;
    padding-right: 28px;
  }

  .platform-offer {
    gap: 64px;
  }

  .offer-ledger article {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px 24px;
  }

  .offer-ledger article > a {
    grid-column: 1;
    margin-top: -4px;
  }

  .sequence-row {
    overflow-x: auto;
  }

  .companion-story {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .companion-intro h2 {
    max-width: 12ch;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: calc(62px + env(safe-area-inset-top));
  }

  .site-header nav {
    gap: 18px;
  }

  .hero {
    display: block;
  }

  .hero-promise {
    min-height: 560px;
    padding-bottom: 100px;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: clamp(4rem, 17vw, 5.8rem);
  }

  .platform-offer {
    grid-template-columns: 1fr;
  }

  .offer-intro {
    position: static;
  }

  .offer-intro > h2 {
    max-width: 9ch;
  }

  .speaking-demo {
    min-height: auto;
    padding: 58px 24px 30px;
  }

  .practice-path {
    display: none;
  }

  .speaking-demo:before {
    height: 520px;
    top: 130px;
  }

  .phrase-focus {
    margin: 42px auto 30px;
  }

  .phrase-focus h2 {
    text-wrap: wrap;
    font-size: clamp(2.6rem, 11vw, 4.5rem);
  }

  .demo-bottom-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sequence-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sequence-row {
    grid-template-columns: 110px minmax(820px, 1fr);
  }

  .book-marker {
    min-height: 180px;
  }

  .story-path {
    grid-template-columns: 1fr;
  }

  .story-path svg {
    height: 70px;
    margin: 10px 0;
    transform: rotate(90deg);
  }

  .word-ribbon {
    grid-template-columns: repeat(4, minmax(280px, 82vw));
  }

  .teacher-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 42px;
  }

  .legal-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .legal-footer nav {
    justify-content: flex-start;
  }

  .legal-footer-meta {
    grid-column: 1;
  }
}

html[data-transliteration="hide"] [class*="transliteration"] {
  display: none !important;
}

html[data-arabic-size="large"] [lang="ar"], html[data-arabic-size="large"] [dir="rtl"] {
  zoom: 1.1;
}

.settings-shell {
  background: var(--theme-canvas);
  color: var(--theme-text);
  min-height: var(--app-vh);
}

.settings-layout {
  min-height: calc(var(--app-vh) - 68px);
  grid-template-columns: minmax(270px, 22vw) minmax(0, 1fr);
  display: grid;
}

.settings-rail {
  background: var(--cobalt);
  color: var(--white);
  flex-direction: column;
  min-height: 100%;
  padding: 0 0 30px;
  display: flex;
}

.settings-identity {
  background: var(--ink);
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 26px clamp(20px, 2.5vw, 34px);
  display: grid;
}

.settings-identity > span {
  border: 2px solid var(--saffron);
  color: var(--saffron);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
}

.settings-identity strong, .settings-identity small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.settings-identity strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.settings-identity small {
  color: var(--ink-tint);
  margin-top: 4px;
  font-size: .67rem;
}

.settings-rail nav {
  display: grid;
}

.settings-rail nav button {
  color: var(--white);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #ffffff38;
  min-height: 82px;
  padding: 18px clamp(20px, 2.5vw, 34px);
  position: relative;
}

.settings-rail nav button:after {
  background: var(--saffron);
  content: "";
  transform-origin: bottom;
  width: 1px;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  transform: scaleY(0);
}

.settings-rail nav button:hover {
  background: #ffffff12;
}

.settings-rail nav button[aria-current="page"] {
  background: var(--white);
  color: var(--ink);
}

.settings-rail nav button[aria-current="page"]:after {
  transform: scaleY(1);
}

.settings-rail nav button strong, .settings-rail nav button small {
  display: block;
}

.settings-rail nav button strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.settings-rail nav button small {
  color: var(--cobalt-tint);
  margin-top: 5px;
  font-size: .65rem;
}

.settings-rail nav button[aria-current="page"] small {
  color: #596574;
}

.settings-rail > a {
  color: var(--white);
  border-bottom: 1px solid #ffffff5c;
  width: fit-content;
  margin: auto clamp(20px, 2.5vw, 34px) 0;
  padding: 18px 0 9px;
  font-size: .72rem;
  font-weight: 700;
}

.settings-workbench {
  background: var(--theme-canvas);
  min-width: 0;
  position: relative;
}

.settings-workbench-header {
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text);
  justify-content: space-between;
  align-items: end;
  min-height: 116px;
  padding: 24px clamp(26px, 5vw, 74px);
  display: flex;
}

.settings-workbench-header h1 {
  font-family: var(--font-display);
  letter-spacing: -.025em;
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: .9;
}

.settings-workbench-header p {
  color: var(--theme-muted);
  margin: 10px 0 0;
  font-size: .74rem;
}

.settings-mobile-select {
  display: none;
}

.settings-section {
  max-width: 1120px;
  min-height: calc(var(--app-vh) - 184px);
  margin: 0;
  padding: clamp(48px, 7vw, 86px) clamp(26px, 6vw, 86px) 100px;
  animation: .32s cubic-bezier(.16, 1, .3, 1) both settings-section-enter;
}

@keyframes settings-section-enter {
  from {
    clip-path: inset(0 0 10%);
    opacity: .35;
    transform: translateY(18px);
  }

  to {
    clip-path: inset(0);
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-section > header {
  border-bottom: 2px solid var(--theme-border);
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1fr);
  gap: 20px;
  padding-bottom: 28px;
  display: grid;
}

.settings-section > header h2 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 9ch;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 600;
  line-height: .9;
}

.settings-section > header p {
  color: var(--theme-muted);
  align-self: end;
  max-width: 56ch;
  margin: 0;
  line-height: 1.6;
}

.settings-section form {
  margin-top: 42px;
}

.settings-field-row, .settings-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  display: grid;
}

.settings-field-row > label, .settings-field-grid > label {
  border-bottom: 1px solid var(--theme-border);
  gap: 9px;
  padding: 19px 20px;
  display: grid;
}

.settings-field-row > label:nth-child(odd), .settings-field-grid > label:nth-child(odd) {
  border-right: 1px solid var(--theme-border);
  padding-left: 0;
}

.settings-field-row > label:nth-child(2n), .settings-field-grid > label:nth-child(2n) {
  padding-right: 0;
}

.settings-field-row label > span, .settings-field-grid label > span, .settings-delete label > span, .settings-mobile-select > span {
  color: var(--theme-muted);
  font-size: .68rem;
  font-weight: 700;
}

.settings-field-row input, .settings-field-grid select, .settings-delete input, .settings-mobile-select select {
  appearance: none;
  background: var(--theme-surface-raised);
  color: var(--theme-text);
  font: inherit;
  border: 1px solid #8995a4;
  border-radius: 0;
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
}

.settings-field-row input:focus, .settings-field-grid select:focus, .settings-delete input:focus, .settings-mobile-select select:focus {
  border-color: var(--cobalt);
  outline-offset: 2px;
  outline: 3px solid #0a38c82e;
}

.settings-field-row input[readonly] {
  background: var(--theme-canvas);
  color: var(--theme-muted);
}

.settings-record-row {
  border-bottom: 1px solid var(--theme-border);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  display: grid;
}

.settings-record-row > div {
  border-right: 1px solid var(--theme-border);
  padding: 18px 22px;
}

.settings-record-row > div:first-child {
  padding-left: 0;
}

.settings-record-row > div:last-child {
  border: 0;
  padding-right: 0;
}

.settings-record-row span, .settings-plan-ledger span {
  color: var(--theme-muted);
  font-size: .64rem;
  display: block;
}

.settings-record-row strong {
  overflow-wrap: anywhere;
  margin-top: 8px;
  font-size: .82rem;
  display: block;
}

.settings-help {
  color: var(--theme-muted);
  max-width: 68ch;
  margin: 28px 0;
  font-size: .78rem;
  line-height: 1.55;
}

.settings-primary {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  border: 0;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  font-weight: 800;
  display: inline-flex;
}

.settings-primary:hover {
  background: var(--saffron-pale);
}

.settings-primary:focus-visible, .settings-section button:focus-visible, .settings-rail button:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.settings-primary:disabled, .settings-section button:disabled {
  cursor: wait;
  opacity: .58;
}

.settings-path-choice, .settings-size-choice {
  border: 0;
  margin: 0;
  padding: 0;
}

.settings-path-choice legend, .settings-size-choice legend {
  font-family: var(--font-display);
  margin-bottom: 16px;
  font-size: 1.35rem;
  font-weight: 700;
}

.settings-path-choice {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 30px;
  display: grid;
}

.settings-path-choice > label {
  border: 1px solid var(--theme-border);
  cursor: pointer;
  min-height: 132px;
  padding: 22px;
  position: relative;
}

.settings-path-choice > label + label {
  border-left: 0;
}

.settings-path-choice input, .settings-size-choice input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.settings-path-choice label:has(input:checked) {
  background: var(--ink);
  color: var(--white);
}

.settings-path-choice label:has(input:checked):after {
  background: var(--saffron);
  content: "";
  height: 4px;
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
}

.settings-path-choice span, .settings-path-choice strong, .settings-path-choice small {
  display: block;
}

.settings-path-choice strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.settings-path-choice small {
  color: var(--theme-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.settings-path-choice label:has(input:checked) small {
  color: var(--ink-tint);
}

.settings-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  display: flex;
}

.settings-actions > a:not(.settings-primary) {
  border-bottom: 1px solid var(--cobalt);
  color: var(--cobalt-deep);
  padding-bottom: 5px;
  font-size: .78rem;
  font-weight: 800;
}

.settings-toggle-list {
  border-top: 1px solid var(--theme-border);
}

.settings-toggle-list > label {
  border-bottom: 1px solid var(--theme-border);
  cursor: pointer;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 30px;
  min-height: 92px;
  padding: 19px 0;
  display: grid;
}

.settings-toggle-list span, .settings-toggle-list strong, .settings-toggle-list small {
  display: block;
}

.settings-toggle-list strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.settings-toggle-list small {
  color: var(--theme-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.settings-toggle-list input {
  appearance: none;
  cursor: pointer;
  background: #dde2e9;
  border: 1px solid #87919e;
  border-radius: 0;
  width: 58px;
  height: 42px;
  margin: 0;
  position: relative;
}

.settings-toggle-list input:after {
  background: var(--white);
  content: "";
  border: 1px solid #87919e;
  width: 20px;
  height: 30px;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1);
  position: absolute;
  top: 5px;
  left: 5px;
}

.settings-toggle-list input:checked {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.settings-toggle-list input:checked:after {
  border-color: var(--white);
  transform: translateX(25px);
}

.settings-email-timing {
  margin-top: 30px;
}

.settings-size-choice {
  grid-template-columns: 1fr 1fr;
  margin-top: 38px;
  display: grid;
}

.settings-size-choice legend {
  grid-column: 1 / -1;
}

.settings-size-choice > label {
  border: 1px solid var(--theme-border);
  cursor: pointer;
  min-height: 150px;
  padding: 22px;
  position: relative;
}

.settings-size-choice > label + label {
  border-left: 0;
}

.settings-size-choice label:has(input:checked) {
  background: var(--cobalt);
  color: var(--white);
}

.settings-size-choice span {
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  display: flex;
}

.settings-size-choice strong {
  font-family: var(--font-arabic);
  font-size: 2rem;
  font-weight: 600;
}

.settings-size-choice label:last-child strong {
  font-size: 2.35rem;
}

.settings-size-choice small {
  color: inherit;
  font-weight: 700;
}

.settings-plan-ledger {
  background: var(--ink);
  color: var(--white);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  display: grid;
}

.settings-plan-ledger > div {
  border-right: 1px solid #46505a;
  min-height: 140px;
  padding: 26px;
}

.settings-plan-ledger > div:last-child {
  border: 0;
}

.settings-plan-ledger span {
  color: var(--ink-tint);
}

.settings-plan-ledger strong {
  color: var(--saffron);
  font-family: var(--font-display);
  margin-top: 28px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  display: block;
}

.settings-membership-note {
  border-bottom: 1px solid var(--theme-border);
  grid-template-columns: minmax(180px, .7fr) 1fr;
  gap: 26px;
  padding: 34px 0;
  display: grid;
}

.settings-membership-note strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.settings-membership-note p {
  color: var(--theme-muted);
  margin: 0;
  line-height: 1.55;
}

.settings-privacy-row {
  border-bottom: 1px solid var(--theme-border);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 128px;
  padding: 26px 0;
  display: grid;
}

.settings-privacy-row h3, .settings-delete h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.55rem;
}

.settings-privacy-row p, .settings-delete p {
  color: var(--theme-muted);
  max-width: 66ch;
  margin: 8px 0 0;
  font-size: .82rem;
  line-height: 1.55;
}

.settings-privacy-row > a, .settings-privacy-row button {
  border: 1px solid var(--theme-text);
  color: var(--theme-text);
  cursor: pointer;
  font: inherit;
  background: none;
  min-height: 48px;
  padding: 0 16px;
  font-size: .76rem;
  font-weight: 800;
}

.settings-privacy-row > a {
  align-items: center;
  display: inline-flex;
}

.settings-privacy-row > div:last-child:not(:first-child) {
  gap: 10px;
  display: flex;
}

.settings-policy-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 390px;
}

.settings-policy-links a {
  border: 1px solid var(--theme-text);
  color: var(--theme-text);
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  font-size: .76rem;
  font-weight: 800;
  display: inline-flex;
}

.settings-policy-links a:hover {
  background: var(--ink);
  color: var(--white);
}

.settings-policy-links a:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.settings-delete {
  background: #fff3f1;
  border: 1px solid #d88d83;
  margin-top: 46px;
  padding: 28px;
}

.settings-delete label {
  gap: 9px;
  max-width: 540px;
  margin-top: 24px;
  display: grid;
}

.settings-delete button {
  color: var(--white);
  cursor: pointer;
  font: inherit;
  background: #8c2015;
  border: 0;
  min-height: 50px;
  margin-top: 18px;
  padding: 0 18px;
  font-size: .76rem;
  font-weight: 800;
}

.settings-delete button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.settings-notice {
  background: var(--success);
  color: var(--white);
  z-index: 60;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: max-content;
  max-width: min(680px, 100% - 40px);
  padding: 15px 18px;
  display: flex;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.settings-notice.is-error {
  background: #8c2015;
}

.settings-notice p {
  margin: 0;
  line-height: 1.4;
}

.settings-notice button {
  color: inherit;
  cursor: pointer;
  font: inherit;
  background: none;
  border: 1px solid;
  min-height: 34px;
  padding: 0 10px;
}

.settings-loading {
  background: var(--ink);
  color: var(--white);
  min-height: calc(var(--app-vh) - 68px);
  align-content: center;
  padding: clamp(40px, 8vw, 100px);
  display: grid;
}

.settings-loading strong {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.settings-loading p {
  color: var(--ink-tint);
}

.settings-loading a {
  color: var(--saffron);
  width: fit-content;
  font-weight: 800;
}

@media (max-width: 900px) {
  .settings-layout {
    display: block;
  }

  .settings-rail {
    display: none;
  }

  .settings-workbench-header {
    align-items: stretch;
    gap: 24px;
    min-height: 0;
    padding: 24px;
  }

  .settings-mobile-select {
    gap: 7px;
    min-width: 190px;
    display: grid;
  }

  .settings-mobile-select select {
    min-height: 48px;
    padding-right: 34px;
  }

  .settings-section {
    min-height: 0;
    padding: 52px 24px 90px;
  }
}

@media (max-width: 620px) {
  .settings-workbench-header {
    align-items: stretch;
    display: grid;
  }

  .settings-workbench-header h1 {
    font-size: 2.65rem;
  }

  .settings-section > header {
    grid-template-columns: 1fr;
  }

  .settings-section > header h2 {
    font-size: 3.35rem;
  }

  .settings-field-row, .settings-field-grid, .settings-path-choice, .settings-size-choice, .settings-record-row, .settings-plan-ledger, .settings-membership-note {
    grid-template-columns: 1fr;
  }

  .settings-field-row > label:nth-child(n), .settings-field-grid > label:nth-child(n) {
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .settings-path-choice > label + label, .settings-size-choice > label + label {
    border-left: 1px solid var(--theme-border);
    border-top: 0;
  }

  .settings-record-row > div {
    border-bottom: 1px solid var(--theme-border);
    border-right: 0;
    padding: 18px 0;
  }

  .settings-plan-ledger > div {
    border-bottom: 1px solid #46505a;
    border-right: 0;
    min-height: 112px;
  }

  .settings-plan-ledger strong {
    margin-top: 16px;
  }

  .settings-privacy-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .settings-privacy-row > a, .settings-privacy-row button {
    text-align: center;
    justify-content: center;
  }

  .settings-privacy-row > div:last-child:not(:first-child), .settings-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-policy-links {
    max-width: none;
  }

  .settings-policy-links a {
    justify-content: center;
  }

  .settings-primary {
    width: 100%;
  }

  .settings-delete {
    margin-left: -8px;
    margin-right: -8px;
    padding: 24px 18px;
  }

  .settings-notice {
    width: calc(100% - 28px);
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-section {
    animation: none;
  }
}

.email-preferences-page {
  background: var(--paper);
  color: var(--ink);
  min-height: var(--app-vh);
  align-content: start;
  padding: clamp(28px, 6vw, 72px);
  display: grid;
}

.email-preferences-wordmark {
  --wordmark-height: 34px;
  background: var(--cobalt);
  width: fit-content;
  padding: 12px 14px;
  display: block;
}

.email-preferences-page > section {
  border-top: 5px solid var(--cobalt);
  max-width: 720px;
  margin-top: clamp(54px, 10vh, 110px);
  padding-top: 30px;
}

.email-preferences-page h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 6rem);
  font-weight: 600;
  line-height: .88;
}

.email-preferences-page h2 {
  font-family: var(--font-display);
  margin: 30px 0 0;
  font-size: 2rem;
}

.email-preferences-page p {
  color: var(--cobalt-dark);
  max-width: 65ch;
  margin: 24px 0;
  line-height: 1.65;
}

.email-preferences-page button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  border: 0;
  min-height: 58px;
  padding: 0 22px;
  font-weight: 800;
  display: block;
}

.email-preferences-page button:disabled {
  cursor: wait;
  opacity: .6;
}

.email-preferences-page section > a {
  border-bottom: 1px solid var(--cobalt);
  color: var(--cobalt-deep);
  margin-top: 26px;
  padding-bottom: 5px;
  font-size: .8rem;
  font-weight: 800;
  display: inline-block;
}

.email-preferences-page button:focus-visible, .email-preferences-page a:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .site-header {
    padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  }

  .site-header nav {
    gap: 16px;
  }

  .wordmark {
    --wordmark-height: 26px;
  }

  .hero-promise {
    min-height: 530px;
    padding: 54px 24px 100px;
  }

  .hero-copy > p {
    margin-top: 24px;
  }

  .primary-action {
    gap: 26px;
    min-height: 62px;
    margin-top: 30px;
  }

  .promise-letter {
    width: 42%;
    right: -5px;
  }

  .platform-offer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .offer-intro > h2 {
    font-size: 3.65rem;
  }

  .offer-access {
    padding-inline: 22px;
  }

  .offer-ledger article {
    padding: 28px 0;
  }

  .listen-station > button {
    min-height: 78px;
    padding: 0 12px;
  }

  .round-icon {
    width: 48px;
    height: 48px;
  }

  .audio-wave {
    gap: 1px;
    margin: 0 8px;
  }

  .audio-wave i:nth-child(2n) {
    display: none;
  }

  .phrase-focus h2 {
    line-height: 1.6;
  }

  .practice-sequence {
    padding-left: 18px;
    padding-right: 18px;
  }

  .companion-story, .teacher-band {
    padding-left: 24px;
    padding-right: 24px;
  }

  .companion-intro h2, .teacher-band h2 {
    font-size: 3.4rem;
  }

  .unit-heading {
    padding-left: 24px;
    padding-right: 24px;
  }

  .unit-heading h2 {
    font-size: 3.6rem;
  }
}

.lesson-shell {
  background: var(--ink);
  min-height: var(--app-vh);
}

.lesson-header {
  background: var(--cobalt-deep);
  color: var(--white);
  height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(clamp(20px, 3vw, 52px), env(safe-area-inset-right)) 0 max(clamp(20px, 3vw, 52px), env(safe-area-inset-left));
  border-bottom: 1px solid #ffffff47;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  display: grid;
}

.lesson-header p {
  color: var(--cobalt-tint);
  margin: 0;
  font-size: .78rem;
}

.lesson-header > nav, .unit-practice-header > nav {
  justify-self: end;
  align-items: center;
  gap: 24px;
  display: flex;
}

.lesson-header > nav a, .unit-practice-header > nav a {
  border-bottom: 1px solid #0000;
  padding: 12px 0;
  font-size: .8rem;
}

.lesson-header > nav a:hover, .unit-practice-header > nav a:hover {
  border-bottom-color: var(--saffron);
  color: var(--saffron-pale);
}

.lesson-header > nav .feedback-sound-toggle, .unit-practice-header > nav .feedback-sound-toggle {
  margin-right: 2px;
}

.lesson-workspace {
  min-height: calc(var(--app-vh) - 68px);
  grid-template-columns: minmax(280px, 24vw) minmax(0, 1fr);
  display: grid;
}

.lesson-rail {
  background: var(--cobalt);
  color: var(--white);
  flex-direction: column;
  padding: clamp(38px, 5vw, 70px) clamp(24px, 3vw, 46px) 36px;
  display: flex;
}

.lesson-rail-copy h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3rem, 4vw, 4.7rem);
  font-weight: 600;
  line-height: .9;
}

.lesson-rail-copy p {
  color: var(--cobalt-tint);
  max-width: 31ch;
  margin: 24px 0 0;
  font-size: .85rem;
  line-height: 1.6;
}

.lesson-progress {
  background: #ffffff38;
  height: 3px;
  margin: 36px 0 24px;
  overflow: hidden;
}

.lesson-progress span {
  background: var(--saffron);
  transform-origin: 0;
  height: 100%;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
  display: block;
}

.lesson-rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-rail li {
  border-top: 1px solid #ffffff3d;
}

.lesson-rail li:last-child {
  border-bottom: 1px solid #ffffff3d;
}

.lesson-rail li > button {
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 8px;
  display: grid;
}

.lesson-rail li > button:disabled {
  color: #ffffff6b;
  cursor: not-allowed;
}

.lesson-rail li > button > span:first-child {
  border: 1px solid;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
}

.lesson-rail li > button > span:last-child {
  gap: 3px;
  display: grid;
}

.lesson-rail li strong {
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 1.15rem;
}

.lesson-rail li small {
  color: inherit;
  opacity: .72;
  font-size: .66rem;
  line-height: 1.35;
}

.lesson-rail li > button.is-active {
  background: var(--ink);
  color: var(--white);
  width: calc(100% + 16px);
  margin-inline: -8px;
  padding-inline: 16px 8px;
}

.lesson-rail li > button.is-active > span:first-child, .lesson-rail li > button.is-complete > span:first-child {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.lesson-source-note {
  color: var(--cobalt-tint);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: auto 0 0;
  padding-top: 32px;
  font-size: .9rem;
}

.lesson-stage {
  background: var(--ink);
  color: var(--white);
  min-width: 0;
  padding: 34px clamp(28px, 5vw, 82px) 30px;
  position: relative;
  overflow: hidden;
}

.lesson-stage:before, .lesson-stage:after {
  content: "";
  pointer-events: none;
  border: 1px dotted #ffbf1926;
  border-radius: 50%;
  width: 760px;
  height: 680px;
  position: absolute;
  top: -280px;
  right: -120px;
}

.lesson-stage:after {
  width: 560px;
  height: 510px;
  top: -190px;
  right: 20px;
}

.lesson-stage > * {
  z-index: 2;
  position: relative;
}

.lesson-stage-topline {
  color: #aeb7c0;
  text-transform: uppercase;
  border-bottom: 1px solid #343d46;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  font-size: .65rem;
  display: flex;
}

.lesson-stage-topline p {
  margin: 0;
}

.lesson-prompt {
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  display: flex;
}

.lesson-prompt-copy h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
}

.lesson-prompt-copy p {
  color: var(--ink-tint);
  margin: 8px 0 0;
  font-size: .8rem;
}

.audio-button-control {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 132px;
  display: flex;
}

.lesson-audio-button {
  appearance: none;
  color: var(--saffron);
  cursor: pointer;
  isolation: isolate;
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 86px;
  height: 86px;
  padding: 0;
  display: grid;
  position: relative;
}

.lesson-audio-button:before {
  content: "";
  z-index: -1;
  background: #ffbf191a;
  border: 1px solid #ffbf196b;
  border-radius: 50%;
  transition: background-color .18s ease-out, border-color .18s ease-out, transform .18s cubic-bezier(.16, 1, .3, 1);
  position: absolute;
  inset: 3px;
}

.lesson-audio-button:after {
  border: 2px solid #ffbf193d;
  border-top-color: var(--saffron);
  content: "";
  opacity: 0;
  border-radius: 50%;
  position: absolute;
  inset: -2px;
}

.lesson-audio-face {
  background: var(--ink-lift);
  border: 2px solid var(--saffron);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 68px;
  height: 68px;
  transition: background-color .16s ease-out, color .16s ease-out, transform .18s cubic-bezier(.16, 1, .3, 1);
  display: flex;
}

.lesson-audio-face svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  width: 35px;
  height: 30px;
}

.speaker-body {
  fill: currentColor;
  stroke: none;
}

.speaker-wave {
  opacity: .62;
  transform-origin: 16px 12px;
}

.audio-button-control[data-state="loading"] .lesson-audio-button:after {
  opacity: 1;
  animation: .8s linear infinite mic-busy-spin;
}

.audio-button-control[data-state="playing"] .lesson-audio-button:before {
  background: var(--saffron);
  border-color: var(--saffron);
  animation: 1.2s ease-out infinite audio-playing-pulse;
}

.audio-button-control[data-state="playing"] .lesson-audio-face {
  background: var(--saffron);
  color: var(--ink);
  transform: scale(1.06);
}

.audio-button-control[data-state="playing"] .speaker-wave {
  animation: .72s ease-out infinite alternate speaker-wave-live;
}

.audio-button-control[data-state="playing"] .speaker-wave-two {
  animation-delay: .18s;
}

.audio-button-control[data-state="error"] .lesson-audio-face {
  border-color: var(--saffron-pale);
  color: var(--saffron-pale);
}

.lesson-audio-button:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 5px;
}

.lesson-audio-label {
  color: var(--ink-tint);
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
  min-height: 1.2em;
  margin-top: 7px;
  font-size: 1rem;
  font-weight: 700;
}

.audio-button-control[data-state="playing"] .lesson-audio-label {
  color: var(--saffron);
}

.audio-button-control[data-state="error"] .lesson-audio-label {
  color: var(--saffron-pale);
}

.active-phrase {
  text-align: center;
  max-width: 900px;
  margin: clamp(42px, 7vh, 76px) auto 36px;
}

.active-phrase > p:first-child {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: clamp(4rem, 7.2vw, 7rem);
  font-weight: 600;
  line-height: 1.45;
}

.active-phrase > p:nth-last-child(2) {
  color: var(--ink-tint);
  margin: 10px 0 0;
  font-size: .78rem;
}

.active-phrase > p:last-child {
  color: var(--saffron);
  font-family: var(--font-display);
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.phrase-measure {
  border-top: 1px dashed #ffbf19c7;
  justify-content: space-around;
  align-items: flex-start;
  max-width: 670px;
  height: 15px;
  margin: -5px auto 0;
  display: flex;
}

.phrase-measure i {
  background: var(--saffron);
  width: 1px;
  height: 10px;
}

.lesson-interaction {
  border-top: 1px solid #343d46;
  margin-top: 32px;
  padding-top: 28px;
}

.listen-task {
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  display: flex;
}

.listen-task > p {
  color: var(--ink-tint);
  max-width: 55ch;
  margin: 0;
  line-height: 1.6;
}

.listen-task > p span {
  color: var(--white);
  font-family: var(--font-arabic);
}

.lesson-next {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  border-radius: 0;
  flex: none;
  min-height: 54px;
  padding: 0 24px;
  font-weight: 700;
}

.lesson-next:hover {
  background: var(--saffron-pale);
}

.lesson-next:disabled {
  color: #2f3336;
  cursor: not-allowed;
  background: #8b826d;
}

.practice-response {
  grid-template-columns: minmax(170px, .7fr) minmax(260px, 1.3fr) auto;
  align-items: end;
  gap: 18px;
  display: grid;
}

.microphone-control {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 132px;
  display: flex;
}

.lesson-mic {
  appearance: none;
  color: var(--ink);
  cursor: pointer;
  isolation: isolate;
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 86px;
  height: 86px;
  padding: 0;
  display: grid;
  position: relative;
}

.lesson-mic:before {
  content: "";
  z-index: -1;
  background: #ffbf1926;
  border: 1px solid #ffbf197a;
  border-radius: 50%;
  transition: background-color .18s ease-out, transform .18s cubic-bezier(.16, 1, .3, 1);
  position: absolute;
  inset: 3px;
}

.lesson-mic:after {
  border: 2px solid #ffbf193d;
  border-top-color: var(--saffron);
  content: "";
  opacity: 0;
  border-radius: 50%;
  position: absolute;
  inset: -2px;
}

.lesson-mic-face {
  background: var(--saffron);
  border: 2px solid var(--saffron);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 68px;
  height: 68px;
  transition: background-color .16s ease-out, color .16s ease-out, transform .18s cubic-bezier(.16, 1, .3, 1);
  display: flex;
}

.lesson-mic-face svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9px;
  width: 30px;
  height: 30px;
}

.lesson-mic-face svg rect {
  fill: none;
}

.lesson-mic.is-listening:before {
  background: var(--saffron);
  border-color: var(--saffron);
  animation: 1.25s ease-out infinite mic-listening-pulse;
}

.lesson-mic.is-listening .lesson-mic-face {
  background: var(--saffron-pale);
  transform: scale(1.06);
}

.microphone-control[data-state="requesting"] .lesson-mic:after, .microphone-control[data-state="transcribing"] .lesson-mic:after {
  opacity: 1;
  animation: .8s linear infinite mic-busy-spin;
}

.microphone-control[data-state="requesting"] .lesson-mic-face, .microphone-control[data-state="transcribing"] .lesson-mic-face {
  background: var(--ink-lift);
  color: var(--saffron);
}

.lesson-mic:disabled {
  cursor: wait;
  opacity: .92;
}

.lesson-mic:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 5px;
}

.lesson-mic-label {
  color: var(--ink-tint);
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
  min-height: 1.2em;
  margin-top: 7px;
  font-size: 1rem;
  font-weight: 700;
}

.microphone-control[data-state="recording"] .lesson-mic-label {
  color: var(--saffron);
}

.practice-response form label {
  color: var(--ink-tint);
  margin-bottom: 6px;
  font-size: .68rem;
  display: block;
}

.practice-response form > div {
  min-height: 58px;
  display: flex;
}

.practice-response input {
  color: var(--white);
  font-family: var(--font-arabic);
  background: #171e25;
  border: 1px solid #485059;
  border-radius: 10px 0 0 10px;
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 1rem;
}

.practice-response input::placeholder {
  color: #a9b1b8;
}

.practice-response form button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  border-radius: 0 10px 10px 0;
  padding: 0 18px;
  font-size: .75rem;
  font-weight: 700;
}

.response-message, .choice-feedback {
  color: var(--saffron);
  grid-column: 1 / -1;
  margin: 0;
}

.response-message.error, .choice-feedback.error {
  color: #ffd760;
}

.response-message p, .vocab-save-message p {
  margin: 0;
}

.lesson-signin-action {
  background: var(--saffron);
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 16px;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  color: var(--ink) !important;
}

.lesson-signin-action:hover {
  background: var(--saffron-pale);
}

.response-result {
  background: var(--ink-lift);
  border: 1px solid #485059;
  border-radius: 15px;
  grid-column: 1 / 3;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 16px;
  display: grid;
}

.response-result strong {
  border: 2px solid var(--saffron);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  display: flex;
}

.response-result p {
  color: var(--ink-tint);
  margin: 0;
  font-size: .78rem;
  line-height: 1.45;
}

.guidance-task {
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  display: grid;
}

.guidance-score {
  border: 2px solid var(--saffron);
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 96px;
  height: 96px;
  display: flex;
}

.guidance-score strong {
  font-size: 1.8rem;
  line-height: 1;
}

.guidance-score span {
  color: var(--ink-tint);
  text-transform: uppercase;
  margin-top: 5px;
  font-size: .52rem;
}

.guidance-task h3 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.guidance-task > div:nth-child(2) > p:last-child {
  color: var(--ink-tint);
  max-width: 58ch;
  margin: 10px 0 0;
  font-size: .78rem;
  line-height: 1.5;
}

.guidance-transcript {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: 1.55rem;
}

.guidance-actions {
  gap: 10px;
  display: grid;
}

.guidance-actions button:first-child {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #5a626b;
  min-height: 48px;
  padding: 0 18px;
}

.guidance-task > small {
  color: #a9b1b8;
  grid-column: 2 / -1;
  font-size: .61rem;
}

.repeat-task {
  gap: 24px;
  display: grid;
}

.identity-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  display: grid;
}

.identity-choice button {
  background: var(--ink-lift);
  color: var(--white);
  cursor: pointer;
  border: 1px solid #485059;
  border-radius: 15px;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  padding: 9px 16px;
  display: flex;
}

.identity-choice button.is-selected {
  border-color: var(--saffron);
}

.identity-choice button:hover {
  border-color: var(--saffron);
  background: #182129;
}

.identity-choice span {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
}

.identity-choice small {
  color: var(--ink-tint);
}

.exchange-task {
  max-width: 900px;
}

.exchange-line {
  background: var(--ink-lift);
  border: 1px solid #485059;
  border-radius: 15px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  display: grid;
}

.exchange-line > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
}

.exchange-line p {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: 1.8rem;
}

.exchange-line small {
  color: var(--ink-tint);
}

.exchange-task > p {
  color: var(--ink-tint);
  margin: 18px 0 12px;
  font-size: .8rem;
}

.exchange-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.exchange-choices button {
  color: var(--white);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 1px solid #485059;
  border-radius: 15px;
  flex-direction: column;
  align-items: flex-start;
  min-height: 88px;
  padding: 14px 16px;
  display: flex;
}

.exchange-choices button:hover {
  border-color: var(--saffron);
}

.exchange-choices span {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
}

.exchange-choices small {
  color: var(--ink-tint);
  margin-top: 5px;
}

.lesson-privacy {
  color: #9ca5ad;
  text-align: center;
  margin: 28px 0 0;
  font-size: .58rem;
  line-height: 1.45;
}

.lesson-complete {
  background: var(--cobalt);
  color: var(--white);
  min-height: calc(var(--app-vh) - 68px);
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, .7fr);
  align-items: center;
  gap: clamp(38px, 6vw, 90px);
  padding: clamp(48px, 8vw, 120px);
  display: grid;
}

.completion-signal {
  border: 3px solid var(--saffron);
  color: var(--saffron);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  font-size: 2rem;
  display: flex;
}

.lesson-complete h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 6rem);
  font-weight: 600;
  line-height: .9;
}

.lesson-complete > div:nth-child(2) > p {
  color: var(--cobalt-tint);
  max-width: 52ch;
  margin: 28px 0 0;
  line-height: 1.65;
}

.completion-actions {
  gap: 18px;
  margin-top: 34px;
  display: flex;
}

.completion-actions button, .completion-actions a {
  align-items: center;
  min-height: 56px;
  padding: 0 22px;
  font-weight: 700;
  display: inline-flex;
}

.completion-actions button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
}

.completion-actions a {
  border-bottom: 2px solid var(--saffron);
  color: var(--saffron);
}

.completion-actions button:hover {
  background: var(--saffron-pale);
}

.completion-actions a:hover {
  color: var(--saffron-pale);
}

.completion-phrases {
  border-top: 1px solid #ffffff59;
}

.completion-phrases p {
  font-family: var(--font-arabic);
  border-bottom: 1px solid #ffffff59;
  margin: 0;
  padding: 14px 0;
  font-size: 1.7rem;
}

.lesson-footer {
  background: var(--ink);
  color: #aeb6be;
  border-top: 1px solid #343d46;
  padding: 18px clamp(24px, 5vw, 82px) 24px;
}

.lesson-footer p {
  max-width: 80ch;
  margin: 0;
  font-size: .62rem;
  line-height: 1.5;
}

@media (hover: hover) {
  .practice-response form button, .identity-choice button, .exchange-choices button {
    transition: background-color .16s ease-out, border-color .16s ease-out;
  }

  .audio-button-control:not([data-state="playing"]) .lesson-audio-button:hover .lesson-audio-face {
    background: #182129;
    transform: scale(1.05);
  }

  .lesson-mic:hover .lesson-mic-face {
    background: var(--saffron-pale);
    transform: scale(1.05);
  }

  .practice-response form button:hover {
    background: var(--saffron-pale);
  }
}

@media (max-width: 980px) {
  .lesson-workspace {
    display: block;
  }

  .lesson-rail {
    padding: 28px 24px 20px;
  }

  .lesson-rail-copy {
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    display: flex;
  }

  .lesson-rail-copy h1 {
    max-width: 10ch;
    font-size: 3.2rem;
  }

  .lesson-rail-copy p {
    margin: 0;
  }

  .lesson-progress {
    margin: 24px 0 14px;
  }

  .lesson-rail ol {
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    display: grid;
    overflow-x: auto;
  }

  .lesson-rail li {
    border-bottom: 1px solid #ffffff3d;
  }

  .lesson-rail li > button.is-active {
    width: 100%;
    margin: 0;
    padding-inline: 12px;
  }

  .lesson-source-note {
    margin-top: 16px;
    padding-top: 0;
  }

  .practice-response {
    grid-template-columns: minmax(170px, .7fr) minmax(260px, 1.3fr);
  }

  .practice-response > .lesson-next {
    grid-column: 2;
  }

  .guidance-task {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .guidance-actions {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guidance-task > small {
    grid-column: 2;
  }

  .lesson-complete {
    grid-template-columns: auto 1fr;
  }

  .completion-phrases {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .lesson-header {
    height: calc(62px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
    grid-template-columns: 1fr 1fr;
  }

  .lesson-header p {
    display: none;
  }

  .lesson-header > nav {
    gap: 14px;
  }

  .lesson-header > nav a {
    font-size: .7rem;
  }

  .lesson-workspace {
    min-height: calc(var(--app-vh) - 62px);
  }

  .lesson-rail-copy {
    align-items: flex-start;
    display: block;
  }

  .lesson-rail-copy h1 {
    font-size: 2.8rem;
  }

  .lesson-rail-copy p {
    margin-top: 14px;
  }

  .lesson-rail ol {
    grid-template-columns: repeat(5, minmax(146px, 1fr));
  }

  .lesson-rail li > button {
    gap: 9px;
    padding: 12px 8px;
  }

  .lesson-rail li small {
    display: none;
  }

  .lesson-source-note {
    font-size: .8rem;
  }

  .lesson-stage {
    padding: 26px 20px 28px;
  }

  .lesson-stage-topline p:last-child {
    display: none;
  }

  .lesson-prompt {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .lesson-prompt .audio-button-control {
    align-self: center;
    align-items: center;
  }

  .active-phrase {
    margin: 36px auto 28px;
  }

  .active-phrase > p:first-child {
    font-size: clamp(3.3rem, 16vw, 5rem);
    line-height: 1.55;
  }

  .listen-task {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .practice-response {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .practice-response > *, .practice-response > .lesson-next, .response-result {
    grid-column: 1;
  }

  .practice-response .lesson-next {
    width: 100%;
  }

  .guidance-task {
    grid-template-columns: 1fr;
  }

  .guidance-score {
    width: 82px;
    height: 82px;
  }

  .guidance-actions, .guidance-task > small {
    grid-column: 1;
  }

  .guidance-actions, .identity-choice, .exchange-choices {
    grid-template-columns: 1fr;
  }

  .exchange-line {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .exchange-line p {
    font-size: 2rem;
  }

  .lesson-complete {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 50px 24px 70px;
  }

  .completion-signal {
    width: 88px;
    height: 88px;
  }

  .lesson-complete h1 {
    font-size: 4rem;
  }

  .completion-phrases {
    grid-column: 1;
  }

  .completion-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .completion-actions button, .completion-actions a {
    justify-content: center;
  }
}

.surface-contract {
  display: none;
}

.conversation-shell {
  background: var(--ink);
  min-height: var(--app-vh);
}

.conversation-app {
  color: var(--ink);
  min-height: var(--app-vh);
}

.conversation-nav {
  background: var(--cobalt-deep);
  color: var(--white);
  min-height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 28px 0;
  grid-template-columns: minmax(190px, .75fr) minmax(280px, 1.5fr) minmax(220px, .75fr);
  align-items: center;
  display: grid;
}

.conversation-nav > div {
  border-left: 1px solid #ffffff3d;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding-left: 26px;
  display: flex;
}

.conversation-nav > div span {
  color: var(--cobalt-tint);
  font-size: .76rem;
}

.conversation-nav > div strong {
  color: var(--saffron);
  font-size: .78rem;
}

.conversation-nav nav {
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  display: flex;
}

.conversation-nav nav a {
  border-bottom: 1px solid #0000;
  padding: 12px 0;
  font-size: .78rem;
}

.conversation-nav nav a:hover {
  border-bottom-color: var(--saffron);
  color: var(--saffron-pale);
}

.conversation-layout {
  height: calc(var(--app-vh) - 68px - env(safe-area-inset-top));
  grid-template-columns: minmax(224px, 20vw) minmax(480px, 1fr) minmax(250px, 23vw);
  min-height: 640px;
  display: grid;
}

.conversation-scenario-rail, .conversation-vocabulary-rail {
  background: var(--paper);
  min-height: 0;
  overflow: auto;
}

.conversation-scenario-rail {
  border-right: 1px solid var(--line-light);
}

.conversation-vocabulary-rail {
  border-left: 1px solid var(--line-light);
}

.conversation-scenario-rail details, .conversation-vocabulary-rail details {
  min-height: 100%;
}

.conversation-scenario-rail summary, .conversation-vocabulary-rail summary {
  display: none;
}

.conversation-scenario-rail details:not([open]) > .conversation-rail-body, .conversation-vocabulary-rail details:not([open]) > .conversation-rail-body {
  display: block;
}

.conversation-rail-body {
  padding: 34px 26px;
}

.conversation-eyebrow {
  color: var(--cobalt);
  font-family: var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 700;
}

.conversation-scenario-rail h1, .conversation-vocabulary-rail h2 {
  font-family: var(--font-display);
  letter-spacing: -.015em;
  text-transform: uppercase;
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.conversation-scenario-rail h1 + p, .conversation-vocabulary-rail h2 + p {
  color: #59616a;
  margin: 16px 0 0;
  font-size: .8rem;
  line-height: 1.55;
}

.conversation-progress {
  border-bottom: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  margin-top: 28px;
  padding: 22px 0;
}

.conversation-progress > strong {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
}

.conversation-progress ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.conversation-progress li {
  flex: 1;
  position: relative;
}

.conversation-progress li:not(:last-child):after {
  content: "";
  background: #b7bfca;
  height: 1px;
  position: absolute;
  top: 14px;
  left: 28px;
  right: 0;
}

.conversation-progress li span {
  background: var(--paper);
  color: #67717b;
  z-index: 1;
  border: 1px solid #aeb6c0;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  position: relative;
}

.conversation-progress li[data-state="done"] span {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.conversation-progress li[data-state="current"] span {
  background: var(--saffron);
  border: 2px solid var(--cobalt);
  color: var(--ink);
}

.conversation-goal {
  color: #434b54;
  margin: 24px 0;
  font-size: .76rem;
  line-height: 1.5;
}

.conversation-back-link {
  text-align: center;
  border: 1px solid #aeb6c0;
  padding: 14px;
  font-size: .74rem;
  font-weight: 700;
  display: block;
}

.conversation-back-link:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.conversation-thread-panel {
  background: var(--ink);
  color: var(--white);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  display: grid;
  position: relative;
  overflow: hidden;
}

.conversation-thread-panel > header {
  border-bottom: 1px solid #2f3943;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  padding: 18px 30px;
  display: flex;
}

.conversation-thread-panel > header .conversation-eyebrow {
  color: var(--saffron);
  margin-bottom: 2px;
}

.conversation-thread-panel > header h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  font-size: 1.75rem;
  line-height: 1;
}

.conversation-thread-panel > header > span {
  color: var(--ink-tint);
  border: 1px solid #46515c;
  padding: 8px 10px;
  font-size: .65rem;
}

.conversation-thread-panel > header > span[data-state="sending"] {
  border-color: var(--saffron);
  color: var(--saffron);
}

.conversation-thread-panel > header > span[data-state="complete"] {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.conversation-thread {
  scroll-behavior: smooth;
  min-height: 0;
  padding: 30px clamp(22px, 4vw, 64px) 40px;
  overflow-y: auto;
}

.conversation-loading {
  color: var(--ink-tint);
  text-align: center;
  margin: 80px auto;
}

.conversation-message {
  max-width: min(78%, 620px);
  margin-bottom: 26px;
}

.conversation-message-has-visual {
  max-width: min(94%, 820px);
}

.conversation-message-user {
  margin-left: auto;
}

.conversation-message-meta {
  color: #99a3ad;
  align-items: center;
  gap: 10px;
  margin: 0 8px 7px;
  font-size: .66rem;
  display: flex;
}

.conversation-message-meta strong {
  color: var(--white);
  font-size: .7rem;
}

.conversation-message-user .conversation-message-meta {
  justify-content: flex-end;
}

.conversation-bubble-row {
  isolation: isolate;
  align-items: center;
  display: flex;
}

.conversation-bubble {
  background: var(--ink-lift);
  z-index: 1;
  border: 1px solid #3c4650;
  flex: auto;
  min-width: 0;
  padding: 17px 20px;
  position: relative;
}

.conversation-message-assistant .conversation-bubble {
  border-top: 2px solid var(--saffron);
  padding-right: 78px;
}

.conversation-message-user .conversation-bubble {
  background: var(--cobalt);
  border-color: #315de0;
  border-top: 2px solid var(--saffron);
}

.conversation-bubble > p {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.65;
}

.conversation-object-cue {
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--line-light);
  z-index: 0;
  flex: 0 0 180px;
  margin: 0 0 0 -1px;
  position: relative;
  overflow: hidden;
}

.conversation-object-cue img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  padding: 12px;
  display: block;
}

.conversation-object-cue[data-cue="classmate-male"] img, .conversation-object-cue[data-cue="classmate-female"] img {
  object-fit: cover;
  padding: 0;
}

.conversation-message-latest .conversation-object-cue {
  animation: .42s cubic-bezier(.16, 1, .3, 1) .12s both conversation-object-reveal;
}

.conversation-bubble > .audio-button-control {
  align-items: center;
  min-width: 0;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.conversation-bubble .lesson-audio-button {
  width: 48px;
  height: 48px;
}

.conversation-bubble .lesson-audio-button:before {
  inset: 1px;
}

.conversation-bubble .lesson-audio-face {
  width: 40px;
  height: 40px;
}

.conversation-bubble .lesson-audio-face svg {
  width: 24px;
  height: 20px;
}

.conversation-bubble .lesson-audio-label {
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  font-size: 0;
  overflow: hidden;
}

.conversation-feedback {
  border-top: 1px solid var(--saffron);
  color: var(--ink-tint);
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  max-width: 90%;
  margin: 8px 8px 0 auto;
  padding-top: 8px;
  font-size: .68rem;
  display: flex;
}

.conversation-feedback strong {
  color: var(--saffron);
}

.conversation-feedback[data-correct="true"] strong {
  color: #9ee8bd;
}

.conversation-typing {
  border: 1px solid #3c4650;
  align-items: center;
  gap: 5px;
  width: 58px;
  padding: 16px;
  display: flex;
}

.conversation-typing i {
  background: var(--saffron);
  border-radius: 50%;
  width: 5px;
  height: 5px;
  animation: .9s ease-in-out infinite alternate chat-dot;
}

.conversation-typing i:nth-child(2) {
  animation-delay: .15s;
}

.conversation-typing i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes chat-dot {
  to {
    opacity: .25;
    transform: translateY(-3px);
  }
}

@keyframes conversation-object-reveal {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.conversation-complete {
  border: 1px solid var(--saffron);
  text-align: center;
  max-width: 430px;
  margin: 30px auto 0;
  padding: 28px;
}

.conversation-complete strong {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.6rem;
}

.conversation-complete p {
  color: var(--ink-tint);
  font-size: .76rem;
  line-height: 1.5;
}

.conversation-complete a {
  background: var(--saffron);
  color: var(--ink);
  padding: 13px 18px;
  font-size: .76rem;
  font-weight: 700;
  display: inline-block;
}

.conversation-complete .conversation-restart {
  border: 1px solid var(--saffron);
  color: var(--saffron);
  cursor: pointer;
  font: 700 .76rem/1 var(--font-body);
  background: none;
  margin: 18px auto 10px;
  padding: 13px 18px;
  display: block;
}

.conversation-composer {
  padding: 12px clamp(18px, 3vw, 38px) max(14px, env(safe-area-inset-bottom));
  background: #0d1319;
  border-top: 1px solid #37414b;
}

.conversation-starters {
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  display: flex;
  overflow-x: auto;
}

.conversation-starters > span {
  color: #919aa4;
  flex: none;
  font-size: .64rem;
}

.conversation-starters button {
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-arabic);
  background: none;
  border: 1px solid #4b5661;
  flex: none;
  padding: 7px 11px;
  font-size: .9rem;
}

.conversation-starters button:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.conversation-suggestion-area {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.conversation-suggestion-area .conversation-starters {
  flex: auto;
  margin-bottom: 0;
}

.conversation-suggestions-toggle {
  color: var(--saffron);
  cursor: pointer;
  font-family: var(--font-arabic);
  background: none;
  border: 1px solid #4b5661;
  flex: none;
  min-height: 44px;
  padding: 7px 12px;
  font-size: .9rem;
}

.conversation-suggestions-toggle:hover {
  border-color: var(--saffron);
}

.conversation-error {
  border-top: 2px solid var(--saffron);
  color: var(--saffron-pale);
  background: #251b08;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 9px 12px;
  font-size: .7rem;
  display: flex;
}

.conversation-error a {
  font-weight: 700;
  text-decoration: underline;
}

.conversation-composer form {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  display: grid;
}

.conversation-composer form > .conversation-voice-control {
  justify-content: center;
  align-items: center;
  min-width: 0;
  display: flex;
}

.conversation-composer .lesson-mic {
  width: 58px;
  height: 58px;
}

.conversation-composer .lesson-mic:before {
  inset: 1px;
}

.conversation-composer .lesson-mic-face {
  width: 48px;
  height: 48px;
}

.conversation-composer .lesson-mic-face svg {
  width: 23px;
  height: 23px;
}

.conversation-voice-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.conversation-voice-control[data-state="connecting"] .lesson-mic:after, .conversation-voice-control[data-state="thinking"] .lesson-mic:after {
  opacity: 1;
  animation: .8s linear infinite mic-busy-spin;
}

.conversation-voice-control[data-state="connecting"] .lesson-mic-face, .conversation-voice-control[data-state="thinking"] .lesson-mic-face, .conversation-voice-control[data-state="teacher-speaking"] .lesson-mic-face {
  background: var(--ink-lift);
  color: var(--saffron);
}

.conversation-voice-control[data-state="teacher-speaking"] .lesson-mic:before {
  border-color: #ffbf19b8;
  transform: scale(.92);
}

.conversation-voice-control[data-state="error"] .lesson-mic-face, .conversation-voice-control[data-state="limit"] .lesson-mic-face {
  background: var(--ink-lift);
  color: var(--saffron-pale);
}

.conversation-composer label {
  background: #171e25;
  border: 1px solid #48535e;
  min-height: 58px;
  padding: 7px 14px;
  display: grid;
}

.conversation-composer label > span {
  color: #9fa8b1;
  font-size: .58rem;
}

.conversation-composer input {
  color: var(--white);
  font-family: var(--font-arabic);
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  font-size: 1.05rem;
}

.conversation-send {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  align-self: stretch;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
}

.conversation-send svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  width: 20px;
  height: 20px;
}

.conversation-send:disabled, .conversation-starters button:disabled {
  cursor: wait;
  opacity: .45;
}

.conversation-allowance {
  color: #8e98a2;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 7px 0 0 76px;
  font-size: .58rem;
  display: flex;
}

.conversation-allowance span:first-child {
  color: var(--saffron);
}

.conversation-allowance a {
  color: var(--ink-tint);
  text-underline-offset: 2px;
  flex: none;
  text-decoration: underline;
}

.conversation-vocabulary-rail ul {
  margin: 24px 0 20px;
  padding: 0;
  list-style: none;
}

.conversation-vocabulary-rail li {
  background: var(--white);
  border: 1px solid var(--line-light);
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  margin-bottom: 8px;
  padding: 10px 8px 10px 14px;
  display: flex;
}

.conversation-vocabulary-rail li > div {
  gap: 2px;
  display: grid;
}

.conversation-vocabulary-rail li strong {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
}

.conversation-vocabulary-rail li span {
  color: #58616b;
  font-size: .68rem;
}

.conversation-vocabulary-rail li .audio-button-control {
  min-width: 44px;
}

.conversation-vocabulary-rail li .lesson-audio-button {
  color: var(--cobalt);
  width: 42px;
  height: 42px;
}

.conversation-vocabulary-rail li .lesson-audio-button:before {
  border-color: var(--line-light);
  background: none;
  inset: 1px;
}

.conversation-vocabulary-rail li .lesson-audio-face {
  color: var(--cobalt);
  background: none;
  border: 0;
  width: 34px;
  height: 34px;
}

.conversation-vocabulary-rail li .lesson-audio-face svg {
  width: 23px;
  height: 20px;
}

.conversation-vocabulary-rail li .lesson-audio-label {
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  font-size: 0;
  overflow: hidden;
}

.conversation-vocabulary-rail .conversation-rail-body > a {
  color: var(--cobalt);
  text-underline-offset: 3px;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: underline;
  display: inline-block;
}

body.conversation-route-active > .legal-footer {
  display: none;
}

.book-two-conversation .conversation-scenario-rail h1, .book-two-conversation .conversation-vocabulary-rail h2 {
  font-family: var(--font-arabic);
  text-transform: none;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.55;
}

.book-two-conversation .conversation-scenario-rail h1 + p, .book-two-conversation .conversation-vocabulary-rail h2 + p, .book-two-conversation .conversation-goal {
  font-family: var(--font-arabic);
  text-align: right;
  font-size: .95rem;
  line-height: 1.85;
}

.book-two-conversation .conversation-thread-panel > header h2 {
  font-family: var(--font-arabic);
  text-transform: none;
  font-size: 1.5rem;
  line-height: 1.5;
}

.book-two-conversation .conversation-starters button {
  font-size: 1.05rem;
  line-height: 1.55;
}

.book-two-conversation .conversation-composer label > span {
  font-family: var(--font-arabic);
  font-size: .72rem;
  line-height: 1.45;
}

.book-two-conversation .conversation-composer input {
  font-size: 1.18rem;
  line-height: 1.5;
}

.book-two-conversation .conversation-voice-control .microphone-control {
  justify-content: center;
  align-items: center;
  display: flex;
}

.book-two-conversation .conversation-voice-control .lesson-mic-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.book-two-conversation .conversation-vocabulary-rail li {
  gap: 8px;
}

.book-two-conversation .conversation-vocabulary-rail li > div {
  min-width: 0;
}

.book-two-conversation .conversation-vocabulary-rail li span[lang="ar"] {
  font-family: var(--font-arabic);
  font-size: .88rem;
  line-height: 1.55;
}

.book-two-conversation .conversation-complete p[lang="ar"] {
  font-family: var(--font-arabic);
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 1050px) {
  .conversation-nav {
    grid-template-columns: minmax(170px, .65fr) minmax(260px, 1.35fr) minmax(180px, .65fr);
  }

  .conversation-layout {
    grid-template-columns: 210px minmax(440px, 1fr);
  }

  .conversation-vocabulary-rail {
    max-width: 340px;
    bottom: 0;
    right: 0;
    top: calc(68px + env(safe-area-inset-top));
    z-index: 8;
    border-left: 0;
    width: 340px;
    transition: transform .2s cubic-bezier(.16, 1, .3, 1);
    position: fixed;
    transform: translateX(calc(100% - 46px));
  }

  .conversation-vocabulary-rail:focus-within, .conversation-vocabulary-rail:hover {
    transform: translateX(0);
  }

  .conversation-vocabulary-rail:before {
    background: var(--saffron);
    content: "WORDS";
    font-family: var(--font-display);
    writing-mode: vertical-rl;
    padding: 10px 8px;
    font-size: .7rem;
    font-weight: 700;
    position: absolute;
    top: 22px;
    left: 0;
    transform: translateX(-100%);
  }
}

@media (max-width: 760px) {
  .conversation-nav {
    min-height: calc(60px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
    grid-template-columns: 1fr auto;
  }

  .conversation-nav .wordmark {
    --wordmark-height: 25px;
  }

  .conversation-nav > div {
    display: none;
  }

  .conversation-nav nav {
    gap: 14px;
    display: flex;
  }

  .conversation-nav nav a {
    font-size: .7rem;
  }

  .conversation-layout {
    height: calc(var(--app-vh) - 60px - env(safe-area-inset-top));
    flex-direction: column;
    min-height: 0;
    display: flex;
  }

  .conversation-scenario-rail, .conversation-vocabulary-rail {
    border: 0;
    flex: none;
    width: auto;
    max-width: none;
    transition: none;
    position: static;
    overflow: visible;
    transform: none;
  }

  .conversation-scenario-rail {
    border-bottom: 1px solid var(--line-light);
    order: 0;
  }

  .conversation-vocabulary-rail {
    border-top: 1px solid var(--line-light);
    order: 2;
  }

  .conversation-vocabulary-rail:before {
    display: none;
  }

  .conversation-scenario-rail details, .conversation-vocabulary-rail details {
    min-height: 0;
  }

  .conversation-scenario-rail summary, .conversation-vocabulary-rail summary {
    cursor: pointer;
    font-family: var(--font-display);
    text-transform: uppercase;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding: 0 17px;
    font-size: .9rem;
    font-weight: 700;
    list-style: none;
    display: flex;
  }

  .conversation-scenario-rail summary:after, .conversation-vocabulary-rail summary:after {
    color: var(--cobalt);
    content: "+";
    font-family: var(--font-ui);
    font-size: 1.2rem;
  }

  .conversation-scenario-rail details[open] summary:after, .conversation-vocabulary-rail details[open] summary:after {
    content: "−";
  }

  .conversation-scenario-rail details:not([open]) .conversation-rail-body, .conversation-vocabulary-rail details:not([open]) .conversation-rail-body {
    display: none;
  }

  .conversation-scenario-rail .conversation-rail-body {
    border-top: 1px solid var(--line-light);
    padding: 18px;
  }

  .conversation-scenario-rail h1 {
    font-size: 1.65rem;
  }

  .conversation-scenario-rail h1 + p, .conversation-goal, .conversation-back-link {
    display: none;
  }

  .conversation-progress {
    border-bottom: 0;
    margin-top: 16px;
    padding: 14px 0 0;
  }

  .conversation-progress > strong {
    font-size: .95rem;
  }

  .conversation-progress ol {
    margin-top: 10px;
  }

  .conversation-thread-panel {
    flex: auto;
    order: 1;
    min-height: 0;
  }

  .conversation-thread-panel > header {
    min-height: 60px;
    padding: 10px 16px;
  }

  .conversation-thread-panel > header h2 {
    font-size: 1.4rem;
  }

  .conversation-thread-panel > header > span {
    padding: 6px 7px;
    font-size: .55rem;
  }

  .conversation-thread {
    padding: 20px 14px 26px;
  }

  .conversation-message {
    max-width: 88%;
  }

  .conversation-message-has-visual {
    max-width: 100%;
  }

  .conversation-bubble {
    padding: 14px 16px;
  }

  .conversation-message-assistant .conversation-bubble {
    padding-right: 65px;
  }

  .conversation-object-cue {
    flex-basis: min(34vw, 150px);
  }

  .conversation-object-cue img {
    padding: 8px;
  }

  .conversation-bubble > p {
    font-size: 1.4rem;
  }

  .conversation-composer {
    padding: 9px 10px max(10px, env(safe-area-inset-bottom));
  }

  .conversation-starters {
    margin-bottom: 7px;
  }

  .conversation-suggestion-area {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-bottom: 7px;
  }

  .conversation-suggestions-toggle {
    align-self: flex-start;
  }

  .conversation-composer form {
    grid-template-columns: 50px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .conversation-composer .lesson-mic {
    width: 48px;
    height: 48px;
  }

  .conversation-composer .lesson-mic-face {
    width: 40px;
    height: 40px;
  }

  .conversation-composer label {
    min-height: 50px;
    padding: 5px 10px;
  }

  .conversation-send {
    justify-content: center;
    padding: 0;
  }

  .conversation-send span {
    display: none;
  }

  .conversation-allowance {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-left: 58px;
  }

  .conversation-vocabulary-rail details[open] {
    max-height: min(55vh, 480px);
    overflow: auto;
  }

  .conversation-vocabulary-rail .conversation-rail-body {
    border-top: 1px solid var(--line-light);
    padding: 18px;
  }

  .conversation-vocabulary-rail ul {
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
    display: grid;
  }

  .conversation-vocabulary-rail li {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-thread {
    scroll-behavior: auto;
  }

  .conversation-typing i, .conversation-message-latest .conversation-object-cue {
    animation: none;
  }

  .conversation-voice-control .lesson-mic:after, .conversation-voice-control .lesson-mic:before {
    animation: none !important;
  }
}

.curriculum-shell {
  background: var(--paper);
  color: var(--ink);
  min-height: var(--app-vh);
}

.library-header {
  background: var(--cobalt-deep);
  color: var(--white);
  border-bottom: 1px solid #ffffff47;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 clamp(20px, 3vw, 52px);
  display: flex;
}

.library-header nav {
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  display: flex;
}

.library-header nav a {
  padding: 24px 0 21px;
  font-size: .82rem;
}

.library-header nav a[aria-current="page"] {
  border-bottom: 3px solid var(--saffron);
  color: var(--saffron);
}

.library-header nav a:hover {
  color: var(--saffron-pale);
}

.library-intro {
  background: var(--white);
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .75fr);
  align-items: stretch;
  gap: clamp(34px, 6vw, 100px);
  padding: clamp(64px, 8vw, 118px) clamp(24px, 6vw, 96px);
  display: grid;
}

.library-intro > div {
  align-self: center;
}

.library-intro h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 10ch;
  margin: 0;
  font-size: 4.8rem;
  font-weight: 600;
  line-height: .9;
}

.library-intro > div > p {
  color: #485059;
  max-width: 61ch;
  margin: 30px 0 0;
  line-height: 1.65;
}

.continue-field {
  background: var(--ink);
  color: var(--white);
  min-height: 320px;
  padding: 30px 34px 0;
  display: grid;
}

.continue-field > div {
  justify-content: space-between;
  align-items: start;
  display: flex;
}

.continue-field > div span {
  color: var(--saffron);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
}

.continue-field > div strong {
  font-size: .78rem;
}

.continue-field > p {
  font-family: var(--font-arabic);
  text-align: center;
  align-self: center;
  margin: 18px 0;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.continue-field > a {
  background: var(--saffron);
  color: var(--ink);
  justify-content: center;
  align-self: end;
  align-items: center;
  min-height: 68px;
  margin: 0 -34px;
  font-weight: 700;
  display: flex;
}

.continue-field > a:hover {
  background: var(--saffron-pale);
}

.curriculum-index {
  grid-template-columns: minmax(190px, 16vw) minmax(0, 1fr);
  display: grid;
}

.book-rail {
  background: var(--cobalt);
  color: var(--white);
  flex-direction: column;
  min-height: 100%;
  padding: 54px 34px;
  display: flex;
}

.book-rail > span, .book-two-marker > span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 700;
}

.book-rail > strong, .book-two-marker > strong {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 600;
  line-height: .9;
}

.book-rail > p {
  color: var(--cobalt-tint);
  border-top: 1px solid #ffffff59;
  margin: auto 0 0;
  padding-top: 22px;
  font-size: .75rem;
  line-height: 1.55;
}

.unit-ledger {
  min-width: 0;
}

.ledger-heading {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  justify-content: space-between;
  align-items: end;
  padding: 46px clamp(24px, 4vw, 66px) 36px;
  display: flex;
}

.ledger-heading h2 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
}

.ledger-heading p {
  color: #485059;
  max-width: 58ch;
  margin: 10px 0 0;
}

.ledger-heading dl {
  gap: 24px;
  margin: 0;
  display: flex;
}

.ledger-heading dl div {
  border-top: 2px solid var(--cobalt);
  min-width: 88px;
  padding-top: 8px;
}

.ledger-heading dt {
  color: #485059;
  text-transform: uppercase;
  font-size: .68rem;
}

.ledger-heading dd {
  font-family: var(--font-display);
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.unit-row {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 94px minmax(280px, 1.2fr) minmax(220px, .7fr) 180px;
  align-items: stretch;
  min-height: 140px;
  display: grid;
}

.unit-row > div {
  border-right: 1px solid var(--line-light);
  padding: 24px 26px;
}

.unit-row > div:last-child {
  border-right: 0;
}

.unit-number {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.unit-number span {
  color: #485059;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .65rem;
}

.unit-number strong {
  font-family: var(--font-display);
  font-size: 3.3rem;
  line-height: 1;
}

.unit-copy {
  align-content: center;
}

.unit-copy h3 {
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.65rem;
}

.unit-copy > p {
  color: #485059;
  max-width: 55ch;
  margin: 9px 0 0;
  font-size: .84rem;
  line-height: 1.55;
}

.unit-sample {
  align-content: center;
}

.unit-sample p {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.5;
}

.unit-sample span {
  color: #485059;
  margin-top: 8px;
  font-size: .68rem;
  display: block;
}

.unit-state {
  text-align: center;
  align-content: center;
}

.unit-state > a {
  background: var(--saffron);
  color: var(--ink);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: fit-content;
  min-height: 58px;
  margin-inline: auto;
  padding: 10px 18px;
  line-height: 1.2;
  display: flex;
}

.unit-state > a strong {
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  font-size: 1rem;
}

.unit-state > a small {
  font-size: .68rem;
  font-weight: 400;
  line-height: 1.35;
}

.unit-state > a:hover {
  background: var(--saffron-pale);
}

.unit-state > span {
  color: #485059;
  gap: 5px;
  font-size: .75rem;
  line-height: 1.45;
  display: grid;
}

.unit-state > span strong {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 1rem;
}

.unit-state > span small {
  font-size: .7rem;
}

.unit-row.is-pending .unit-number strong {
  font-size: 2.85rem;
}

.unit-row.is-pending .unit-copy h3 {
  font-size: 1.5rem;
}

.unit-row.is-pending .unit-sample p {
  font-size: 1.45rem;
}

.unit-row.is-open {
  background: var(--ink);
  color: var(--white);
  border-color: #343d46;
  min-height: 248px;
}

.unit-row.is-open > div {
  border-color: #343d46;
}

.unit-row.is-open .unit-number span, .unit-row.is-open .unit-copy > p, .unit-row.is-open .unit-sample span {
  color: var(--ink-tint);
}

.unit-row.is-open .unit-number strong {
  color: var(--saffron);
}

.library-sequence {
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.library-sequence li {
  border-top: 1px solid #485059;
  align-items: center;
  gap: 7px;
  padding-top: 9px;
  font-size: .66rem;
  display: flex;
}

.library-sequence li span {
  border: 1px solid var(--saffron);
  color: var(--saffron);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  font-size: .58rem;
  display: flex;
}

.book-two-index {
  margin-top: 12px;
}

.book-two-unit-title {
  text-align: right;
  line-height: 1.45;
  font-family: var(--font-arabic) !important;
  text-transform: none !important;
  font-size: 1.65rem !important;
}

.book-two-unit-row .unit-copy > p {
  font-family: var(--font-arabic);
  text-align: right;
  font-size: 1rem;
  line-height: 1.8;
}

.book-two-library-sequence {
  grid-template-columns: repeat(7, minmax(58px, 1fr));
}

.book-two-library-sequence li {
  font-family: var(--font-arabic);
  text-align: right;
  justify-content: flex-start;
  line-height: 1.5;
}

.book-two-band {
  background: var(--white);
  grid-template-columns: minmax(190px, 16vw) minmax(0, 1fr) minmax(220px, 26vw);
  align-items: stretch;
  margin-top: 12px;
  display: grid;
}

.book-two-marker {
  background: var(--ink);
  color: var(--white);
  flex-direction: column;
  padding: 42px 34px;
  display: flex;
}

.book-two-band > div:nth-child(2) {
  align-content: center;
  padding: 46px clamp(26px, 5vw, 76px);
}

.book-two-band h2 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 17ch;
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.book-two-band p {
  color: #485059;
  max-width: 65ch;
  margin: 18px 0 0;
  line-height: 1.65;
}

.book-two-band > div:nth-child(2) > a {
  border-bottom: 2px solid var(--cobalt);
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-top: 24px;
  padding-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-block;
}

.book-two-band > div:nth-child(2) > a:hover {
  color: var(--cobalt);
}

.book-two-state {
  border-left: 1px solid var(--line-light);
  color: #67717b;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 36px;
  font-size: .75rem;
  display: flex;
}

@media (max-width: 1040px) {
  .library-intro {
    grid-template-columns: 1fr;
  }

  .continue-field {
    min-height: 290px;
  }

  .curriculum-index {
    grid-template-columns: 1fr;
  }

  .book-rail {
    grid-template-columns: auto auto 1fr;
    align-items: end;
    gap: 20px;
    min-height: auto;
    padding: 24px 30px;
    display: grid;
  }

  .book-rail > strong {
    font-size: 4rem;
  }

  .book-rail > p {
    border-top: 0;
    border-left: 1px solid #ffffff59;
    margin: 0;
    padding: 0 0 0 22px;
  }

  .unit-row {
    grid-template-columns: 86px minmax(270px, 1fr) minmax(220px, .7fr) 160px;
  }

  .book-two-band {
    grid-template-columns: 150px 1fr;
  }

  .book-two-state {
    border-left: 0;
    border-top: 1px solid var(--line-light);
    text-align: left;
    grid-column: 2;
    justify-content: flex-start;
    padding: 22px clamp(26px, 5vw, 76px);
  }
}

.book-two-plan-shell {
  background: var(--paper);
  color: var(--ink);
  min-height: var(--app-vh);
}

.book-two-plan-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  display: grid;
}

.book-two-plan-hero > div:first-child {
  background: var(--cobalt);
  color: var(--white);
  align-content: center;
  min-height: 500px;
  padding: clamp(64px, 8vw, 118px) clamp(28px, 6vw, 96px);
}

.book-two-plan-hero > div:first-child > a {
  border-bottom: 1px solid var(--saffron);
  color: var(--saffron);
  text-transform: uppercase;
  padding-bottom: 4px;
  font-size: .75rem;
  font-weight: 700;
  display: inline-block;
}

.book-two-plan-hero h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 10ch;
  margin: 34px 0 0;
  font-size: clamp(4rem, 6vw, 5.8rem);
  font-weight: 600;
  line-height: .9;
}

.book-two-plan-hero > div:first-child > p {
  color: var(--cobalt-tint);
  max-width: 61ch;
  margin: 30px 0 0;
  line-height: 1.65;
}

.book-two-plan-hero > div:first-child > .book-two-student-pilot {
  background: var(--saffron);
  color: var(--ink);
  border: 0;
  margin-top: 28px;
  padding: 12px 15px;
}

.book-two-plan-proof {
  background: var(--ink);
  color: var(--white);
  align-content: space-between;
  min-height: 500px;
  padding: clamp(44px, 6vw, 82px);
  display: grid;
}

.book-two-plan-proof > span {
  color: var(--saffron);
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 700;
}

.book-two-plan-proof > p {
  font-family: var(--font-arabic);
  margin: 42px 0;
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  font-weight: 600;
  line-height: 1.55;
}

.book-two-plan-proof dl {
  border-top: 1px solid #fff3;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding-top: 24px;
  display: grid;
}

.book-two-plan-proof dl div {
  border-left: 1px solid #fff3;
  padding: 0 18px;
}

.book-two-plan-proof dl div:last-child {
  border-left: 0;
}

.book-two-plan-proof dt {
  color: var(--ink-tint);
  font-size: .75rem;
}

.book-two-plan-proof dd {
  color: var(--saffron);
  font-family: var(--font-display);
  margin: 4px 0 0;
  font-size: 2.1rem;
  font-weight: 700;
}

.book-two-rigor, .book-two-method, .book-two-unit-dossier {
  padding: clamp(56px, 7vw, 96px) clamp(22px, 5vw, 78px);
}

.book-two-rigor > header, .book-two-method > header, .book-two-unit-dossier > header {
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
  display: flex;
}

.book-two-rigor > header h2, .book-two-method > header h2, .book-two-unit-dossier > header h2 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: .95;
}

.book-two-rigor > header p, .book-two-method > header p, .book-two-unit-dossier > header p {
  color: #485059;
  max-width: 58ch;
  margin: 0;
  line-height: 1.6;
}

.book-two-rigor > ol {
  border-top: 1px solid var(--line-light);
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.book-two-rigor > ol > li {
  border-right: 1px solid var(--line-light);
  min-height: 280px;
  padding: 28px 26px;
}

.book-two-rigor > ol > li:last-child {
  border-right: 0;
}

.book-two-rigor li > div {
  text-transform: uppercase;
  justify-content: space-between;
  font-size: .7rem;
  display: flex;
}

.book-two-rigor li > div strong {
  color: var(--cobalt);
}

.book-two-rigor h3 {
  font-family: var(--font-arabic);
  margin: 38px 0 18px;
  font-size: 1.7rem;
  line-height: 1.5;
}

.book-two-rigor li > p {
  color: #485059;
  font-size: .84rem;
  line-height: 1.55;
}

.book-two-rigor li > small {
  border-top: 2px solid var(--cobalt);
  margin-top: 28px;
  padding-top: 10px;
  font-size: .68rem;
  display: block;
}

.book-two-method {
  background: var(--ink);
  color: var(--white);
}

.book-two-method > header p {
  color: var(--ink-tint);
}

.book-two-method-scroll {
  overflow-x: auto;
}

.book-two-method-scroll:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 6px;
}

.book-two-method-scroll > ol {
  grid-template-columns: repeat(7, minmax(155px, 1fr));
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
  display: grid;
}

.book-two-method-scroll > ol > li {
  border-left: 1px solid #fff3;
  grid-template-rows: auto 1fr;
  min-height: 370px;
  padding: 24px 22px;
  display: grid;
}

.book-two-method-scroll > ol > li:last-child {
  border-left: 0;
}

.book-two-method-scroll > ol > li > span {
  border: 1px solid var(--saffron);
  color: var(--saffron);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  display: flex;
}

.book-two-method li > div {
  align-self: end;
}

.book-two-method h3 {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
}

.book-two-method h3 + small {
  color: var(--saffron);
  text-transform: uppercase;
  margin-top: 5px;
  font-size: .65rem;
  display: block;
}

.book-two-method li p {
  color: var(--ink-tint);
  font-family: var(--font-arabic);
  margin: 28px 0 0;
  font-size: 1rem;
  line-height: 1.9;
}

.book-two-input-rise {
  border-top: 1px solid #fff3;
  margin-top: 18px;
  padding-top: 10px;
  line-height: 1.45;
  color: var(--ink-tint) !important;
  text-transform: none !important;
  display: block !important;
}

.book-two-unit-dossier {
  padding-bottom: 120px;
}

.book-two-band-group {
  grid-template-columns: minmax(190px, 16vw) minmax(0, 1fr);
  margin-top: 12px;
  display: grid;
}

.book-two-band-group > header {
  background: var(--cobalt);
  color: var(--white);
  padding: 32px 28px;
}

.book-two-band-group > header > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
}

.book-two-band-group > header h3 {
  font-family: var(--font-arabic);
  margin: 36px 0 0;
  font-size: 2rem;
  line-height: 1.5;
}

.book-two-band-group > header p {
  color: var(--cobalt-tint);
  border-top: 1px solid #ffffff59;
  margin: 36px 0 0;
  padding-top: 18px;
  font-size: .72rem;
  line-height: 1.55;
}

.book-two-unit-plan {
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 82px minmax(220px, .72fr) minmax(330px, 1fr);
  display: grid;
}

.book-two-unit-index {
  border-right: 1px solid var(--line-light);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 22px 14px;
  display: flex;
}

.book-two-unit-index span {
  color: #485059;
  text-transform: uppercase;
  font-size: .6rem;
}

.book-two-unit-index strong {
  color: var(--cobalt);
  font-family: var(--font-display);
  font-size: 3rem;
}

.book-two-unit-core {
  border-right: 1px solid var(--line-light);
  padding: 28px 26px;
}

.book-two-unit-core h4 {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.5;
}

.book-two-unit-core > span {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .9rem;
  font-weight: 700;
  display: block;
}

.book-two-unit-core > p {
  font-family: var(--font-arabic);
  margin: 24px 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.8;
}

.book-two-unit-core > ul {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.book-two-unit-core > ul li {
  font-family: var(--font-arabic);
  background: #eef1f7;
  padding: 5px 9px;
  font-size: .88rem;
}

.book-two-unit-details {
  grid-template-columns: repeat(4, 1fr);
  display: grid;
}

.book-two-unit-details > section {
  border-right: 1px solid var(--line-light);
  padding: 28px 22px;
}

.book-two-unit-details > section:last-child {
  border-right: 0;
}

.book-two-unit-details h5 {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0 0 16px;
  font-size: .78rem;
}

.book-two-unit-details ul {
  margin: 0;
  padding: 0 18px 0 0;
}

.book-two-unit-details li, .book-two-unit-details p {
  color: var(--ink);
  font-family: var(--font-arabic);
  font-size: .9rem;
  line-height: 1.85;
}

.book-two-unit-details p {
  margin: 0 0 10px;
}

.book-two-unit-details p strong {
  color: var(--ink);
}

.book-two-unit-details small {
  color: #67717b;
  font-size: .65rem;
}

.book-two-unit-dossier > header > div {
  max-width: 58ch;
}

.book-two-unit-dossier > header > div > p {
  max-width: none;
}

.book-two-ajurrumiyyah-note {
  border-top: 1px solid var(--line-light);
  padding-top: 12px;
  font-size: .78rem;
  margin-top: 14px !important;
}

.book-two-ajurrumiyyah-note a {
  border-bottom: 1px solid var(--cobalt);
  color: var(--cobalt-deep);
  font-weight: 700;
}

.book-two-ajurrumiyyah {
  border-top: 1px solid var(--line-light);
  background: #eef1f7;
  grid-column: 2 / -1;
  grid-template-columns: minmax(190px, .7fr) minmax(190px, 1fr) minmax(240px, 1.25fr) minmax(220px, 1fr);
  display: grid;
}

.book-two-ajurrumiyyah > * {
  border-right: 1px solid var(--line-light);
  margin: 0;
  padding: 20px 22px;
}

.book-two-ajurrumiyyah > :last-child {
  border-right: 0;
}

.book-two-ajurrumiyyah header > span, .book-two-ajurrumiyyah div > span {
  color: var(--cobalt-deep);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 800;
  display: block;
}

.book-two-ajurrumiyyah header > p {
  color: var(--ink);
  font-family: var(--font-arabic);
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75;
}

.book-two-ajurrumiyyah div > strong, .book-two-ajurrumiyyah div > p, .book-two-ajurrumiyyah figure > p {
  color: var(--ink);
  font-family: var(--font-arabic);
  font-size: .95rem;
  line-height: 1.8;
  display: block;
}

.book-two-ajurrumiyyah div > strong, .book-two-ajurrumiyyah div > p {
  margin: 10px 0 0;
}

.book-two-ajurrumiyyah figure {
  background: var(--ink);
  color: var(--white);
  align-content: center;
  display: grid;
}

.book-two-ajurrumiyyah figcaption {
  color: var(--saffron);
  font-size: .62rem;
  font-weight: 800;
}

.book-two-ajurrumiyyah figure > p {
  color: var(--white);
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.book-two-unit-vocabulary {
  border-top: 1px solid var(--line-light);
  grid-column: 2 / -1;
  padding: 17px 26px;
}

.book-two-unit-vocabulary > span {
  color: var(--cobalt-deep);
  text-transform: uppercase;
  font-size: .65rem;
  font-weight: 700;
}

.book-two-unit-vocabulary > p {
  color: var(--ink);
  font-family: var(--font-arabic);
  margin: 7px 0 0;
  font-size: 1rem;
  line-height: 1.8;
}

.book-two-unit-vocabulary details {
  border-top: 1px solid var(--line-light);
  margin-top: 14px;
  padding-top: 12px;
}

.book-two-unit-vocabulary summary {
  color: var(--cobalt-deep);
  cursor: pointer;
  width: fit-content;
  font-size: .75rem;
  font-weight: 700;
}

.book-two-unit-vocabulary details > ol {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 18px 0 4px;
  padding: 0 24px 0 0;
  display: grid;
}

.book-two-unit-vocabulary details li {
  font-family: var(--font-arabic);
  padding-right: 4px;
  font-size: .95rem;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .book-two-rigor > ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-two-rigor > ol > li:nth-child(2) {
    border-right: 0;
  }

  .book-two-rigor > ol > li {
    border-bottom: 1px solid var(--line-light);
  }

  .book-two-unit-details {
    grid-template-columns: 1fr;
  }

  .book-two-unit-details > section {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
  }

  .book-two-unit-details > section:last-child {
    border-bottom: 0;
  }

  .book-two-ajurrumiyyah {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-two-ajurrumiyyah > * {
    border-bottom: 1px solid var(--line-light);
  }

  .book-two-ajurrumiyyah > :nth-child(2) {
    border-right: 0;
  }

  .book-two-ajurrumiyyah > :nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 780px) {
  .book-two-plan-hero {
    grid-template-columns: 1fr;
  }

  .book-two-plan-hero > div:first-child, .book-two-plan-proof {
    min-height: 430px;
  }

  .book-two-plan-hero h1 {
    font-size: 3.4rem;
  }

  .book-two-rigor > header, .book-two-method > header, .book-two-unit-dossier > header {
    align-items: start;
    display: block;
  }

  .book-two-rigor > header p, .book-two-method > header p, .book-two-unit-dossier > header p {
    margin-top: 20px;
  }

  .book-two-rigor > ol {
    grid-template-columns: 1fr;
  }

  .book-two-rigor > ol > li {
    border-right: 0;
    min-height: 0;
  }

  .book-two-band-group {
    grid-template-columns: 1fr;
  }

  .book-two-band-group > header {
    position: static;
  }

  .book-two-unit-plan {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .book-two-unit-index {
    grid-row: 1 / span 3;
  }

  .book-two-unit-core, .book-two-unit-details, .book-two-ajurrumiyyah, .book-two-unit-vocabulary {
    border-right: 0;
    grid-column: 2;
  }

  .book-two-unit-core {
    border-bottom: 1px solid var(--line-light);
  }

  .book-two-ajurrumiyyah {
    grid-template-columns: 1fr;
  }

  .book-two-ajurrumiyyah > * {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
  }

  .book-two-ajurrumiyyah > :nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line-light);
  }

  .book-two-ajurrumiyyah > :last-child {
    border-bottom: 0;
  }

  .book-two-unit-vocabulary {
    grid-column: 2;
  }

  .book-two-unit-vocabulary details > ol {
    grid-template-columns: 1fr;
  }

  .library-header {
    height: 62px;
    padding: 0 18px;
  }

  .library-header nav {
    gap: 18px;
  }

  .library-header nav a {
    padding: 22px 0 19px;
    font-size: .72rem;
  }

  .library-intro {
    padding: 52px 20px;
  }

  .library-intro h1 {
    font-size: 3.7rem;
  }

  .continue-field {
    min-height: 272px;
    padding: 24px 22px 0;
  }

  .continue-field > p {
    font-size: 2.25rem;
  }

  .continue-field > a {
    margin: 0 -22px;
  }

  .book-rail {
    grid-template-columns: auto auto;
    align-items: center;
  }

  .book-rail > p {
    border-top: 1px solid #ffffff59;
    border-left: 0;
    grid-column: 1 / -1;
    padding: 14px 0 0;
  }

  .ledger-heading {
    align-items: start;
    padding: 34px 20px 26px;
    display: block;
  }

  .ledger-heading h2 {
    font-size: 2.2rem;
  }

  .ledger-heading dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    display: grid;
  }

  .ledger-heading dl div {
    min-width: 0;
  }

  .unit-row, .unit-row.is-open {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
  }

  .unit-row > div {
    padding: 22px 18px;
  }

  .unit-number {
    grid-row: 1 / span 3;
  }

  .unit-copy, .unit-sample, .unit-state {
    grid-column: 2;
    border-right: 0 !important;
  }

  .unit-sample {
    border-top: 1px solid var(--line-light);
  }

  .unit-row.is-open .unit-sample {
    border-color: #343d46;
  }

  .unit-state {
    border-top: 1px solid var(--line-light);
    padding: 18px !important;
  }

  .unit-state > a {
    width: 100%;
    max-width: 280px;
  }

  .library-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-two-band {
    grid-template-columns: 98px 1fr;
  }

  .book-two-marker {
    padding: 30px 18px;
  }

  .book-two-marker > strong {
    font-size: 4.5rem;
  }

  .book-two-band > div:nth-child(2) {
    padding: 34px 22px;
  }

  .book-two-band h2 {
    font-size: 2.15rem;
  }

  .book-two-state {
    grid-column: 1 / -1;
    padding: 20px 22px;
  }
}

.unit-hub-shell {
  background: var(--paper);
  color: var(--ink);
  min-height: var(--app-vh);
  width: 100%;
}

.unit-hub-header {
  background: var(--cobalt-deep);
  color: var(--white);
  border-bottom: 1px solid #ffffff47;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 clamp(20px, 3vw, 52px);
  display: flex;
}

.unit-hub-header nav {
  gap: clamp(22px, 3vw, 46px);
  display: flex;
}

.unit-hub-header nav a {
  padding: 24px 0 21px;
  font-size: .82rem;
}

.unit-hub-header nav a[aria-current="page"] {
  border-bottom: 3px solid var(--saffron);
  color: var(--saffron);
}

.unit-hub-header nav a:hover {
  color: var(--saffron-pale);
}

.unit-hub-intro {
  grid-template-columns: minmax(0, 1.15fr) minmax(370px, .85fr);
  min-height: 520px;
  display: grid;
}

.unit-hub-title-field {
  background: var(--cobalt);
  color: var(--white);
  align-content: center;
  padding: clamp(64px, 8vw, 118px) clamp(28px, 6vw, 96px);
}

.unit-hub-title-field h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 10ch;
  margin: 0;
  font-size: 5.2rem;
  font-weight: 600;
  line-height: .9;
}

.unit-hub-title-field p {
  color: var(--cobalt-tint);
  max-width: 54ch;
  margin: 30px 0 0;
  line-height: 1.65;
}

.unit-hub-intro-action {
  background: var(--saffron);
  color: var(--ink);
  justify-content: center;
  align-items: center;
  min-height: 58px;
  margin-top: 30px;
  padding: 0 24px;
  font-weight: 800;
  display: inline-flex;
}

.unit-hub-intro-action:hover {
  background: var(--saffron-pale);
}

.unit-hub-arabic-field {
  background: var(--ink);
  color: var(--white);
  align-content: space-between;
  padding: clamp(42px, 5vw, 76px);
  display: grid;
}

.unit-hub-arabic-field > div {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.unit-hub-arabic-field > div span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 700;
}

.unit-hub-arabic-field > div strong {
  font-size: .8rem;
}

.unit-hub-arabic-field > p {
  font-family: var(--font-arabic);
  text-align: center;
  margin: 34px 0;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.55;
}

.unit-hub-arabic-field > small {
  color: var(--ink-tint);
  border-top: 1px solid #343d46;
  padding-top: 20px;
}

.unit-lesson-desk {
  background: var(--paper);
}

.unit-lesson-desk > header {
  justify-content: space-between;
  align-items: end;
  padding: 52px clamp(24px, 5vw, 78px) 34px;
  display: flex;
}

.unit-lesson-desk > header h2 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0;
  font-size: 2.7rem;
}

.unit-lesson-desk > header p {
  color: #485059;
  max-width: 65ch;
  margin: 10px 0 0;
}

.unit-lesson-desk > header > span {
  color: #67717b;
  font-size: .72rem;
}

.unit-lesson-progress {
  border-top: 1px solid var(--line-light);
  background: #eef1f7;
  grid-template-columns: auto minmax(180px, 320px);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(24px, 5vw, 78px);
  display: grid;
}

.unit-lesson-progress > strong {
  color: var(--cobalt-deep);
  font-size: .78rem;
}

.unit-lesson-progress > a {
  border-bottom: 2px solid var(--cobalt);
  color: var(--cobalt-deep);
  justify-self: start;
  padding: 5px 0;
  font-size: .78rem;
  font-weight: 700;
}

.unit-lesson-progress > a:hover {
  color: var(--cobalt);
}

.unit-lesson-progress > span {
  background: var(--line-light);
  height: 4px;
  display: block;
  overflow: hidden;
}

.unit-lesson-progress > span > i {
  background: var(--cobalt);
  transform-origin: 0;
  height: 100%;
  transition: transform .2s ease-out;
  display: block;
}

.unit-lesson-progress.is-complete > strong {
  color: var(--success);
}

.unit-lesson-progress.is-complete > span > i {
  background: var(--success);
}

.unit-lesson-list {
  border-top: 1px solid var(--line-light);
  margin: 0;
  padding: 0;
  list-style: none;
}

.unit-lesson-list > li {
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 112px minmax(300px, 1.1fr) minmax(240px, .65fr) 240px;
  align-items: stretch;
  min-height: 196px;
  display: grid;
}

.unit-lesson-list > li:first-child {
  background: var(--ink);
  color: var(--white);
  border-color: #343d46;
  min-height: 228px;
}

.unit-lesson-list > li > * {
  border-right: 1px solid var(--line-light);
  align-content: center;
  margin: 0;
  padding: 28px;
}

.unit-lesson-list > li:first-child > * {
  border-color: #343d46;
}

.unit-lesson-list > li > :last-child {
  border-right: 0;
}

.unit-lesson-number {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.unit-lesson-number span {
  color: #67717b;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .65rem;
}

.unit-lesson-number strong {
  font-family: var(--font-display);
  border: 1px solid;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin-top: 9px;
  font-size: 1.55rem;
  line-height: 1;
  display: flex;
}

.unit-lesson-list > li:first-child .unit-lesson-number span {
  color: var(--ink-tint);
}

.unit-lesson-list > li:first-child .unit-lesson-number strong {
  color: var(--saffron);
}

.unit-lesson-list > li.is-complete .unit-lesson-number span {
  color: var(--success);
  font-weight: 700;
}

.unit-lesson-list > li.is-complete .unit-lesson-number strong, .unit-lesson-list > li:first-child.is-complete .unit-lesson-number strong {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.unit-lesson-list > li:first-child.is-complete .unit-lesson-number span {
  color: var(--success-pale);
}

.unit-lesson-copy h3 {
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.65rem;
}

.unit-lesson-copy p {
  color: #485059;
  max-width: 56ch;
  margin: 10px 0 0;
  padding: 0;
  font-size: .85rem;
  line-height: 1.55;
}

.unit-lesson-copy small {
  color: #67717b;
  margin-top: 16px;
  display: block;
}

.unit-lesson-list > li:first-child .unit-lesson-copy p, .unit-lesson-list > li:first-child .unit-lesson-copy small {
  color: var(--ink-tint);
}

.unit-lesson-arabic {
  font-family: var(--font-arabic);
  text-align: center;
  font-size: 1.75rem;
  line-height: 1.55;
}

.unit-lesson-list > li > a {
  background: var(--cobalt);
  color: var(--white);
  text-align: center;
  justify-content: center;
  align-self: center;
  align-items: center;
  min-height: 58px;
  margin: 28px;
  padding: 0 20px;
  font-weight: 700;
  display: flex;
}

.unit-lesson-list > li:first-child > a {
  background: var(--saffron);
  color: var(--ink);
}

.unit-lesson-list > li > a:hover {
  background: var(--cobalt-deep);
}

.unit-lesson-list > li:first-child > a:hover {
  background: var(--saffron-pale);
}

.unit-assessment-row {
  border-bottom: 1px solid var(--line-light);
  background: #f0f3f8;
  grid-template-columns: 112px minmax(300px, 1.1fr) minmax(240px, .65fr) 240px;
  align-items: stretch;
  min-height: 196px;
  display: grid;
}

.unit-assessment-row > * {
  border-right: 1px solid var(--line-light);
  align-content: center;
  margin: 0;
  padding: 28px;
}

.unit-assessment-row > :last-child {
  border-right: 0;
}

.unit-assessment-row > div:first-child {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.unit-assessment-row > div:first-child span {
  color: #67717b;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .65rem;
}

.unit-assessment-row > div:first-child strong {
  border: 1px solid var(--cobalt);
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin-top: 9px;
  font-size: 1.55rem;
  line-height: 1;
  display: flex;
}

.unit-assessment-row h3 {
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.65rem;
}

.unit-assessment-row > div:nth-child(2) p {
  color: #485059;
  margin: 10px 0 0;
  font-size: .85rem;
  line-height: 1.55;
}

.unit-assessment-row > div:nth-child(2) small {
  color: #67717b;
  margin-top: 16px;
  display: block;
}

.unit-assessment-row > p {
  font-family: var(--font-arabic);
  text-align: center;
  font-size: 1.75rem;
  line-height: 1.55;
}

.unit-assessment-row > a {
  background: var(--saffron);
  color: var(--ink);
  text-align: center;
  justify-content: center;
  align-self: center;
  align-items: center;
  min-height: 58px;
  margin: 28px;
  padding: 0 20px;
  font-weight: 800;
  display: flex;
}

.unit-assessment-row > a:hover {
  background: var(--saffron-pale);
}

.unit-assessment-row.is-complete > div:first-child strong {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.unit-assessment-row.is-complete > div:first-child span {
  color: var(--success);
  font-weight: 700;
}

.unit-assessment-locked {
  color: #727d8b;
  text-align: center;
  align-content: center;
  gap: 6px;
  display: grid;
}

.unit-assessment-locked strong {
  font-size: .78rem;
}

.unit-assessment-locked span {
  font-size: .65rem;
}

.book-two-unit-hub {
  --book-two-index-label: 1rem;
  --book-two-index-number: 1.618rem;
  --book-two-index-disc: 3.236rem;
  --book-two-index-gap: .618rem;
}

.book-two-unit-hub .unit-lesson-number span, .book-two-unit-hub .unit-assessment-row > div:first-child span {
  font-family: var(--font-arabic);
  font-size: var(--book-two-index-label);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  line-height: 1.618;
}

.book-two-unit-hub .unit-lesson-number strong, .book-two-unit-hub .unit-assessment-row > div:first-child strong {
  font-family: var(--font-arabic);
  font-size: var(--book-two-index-number);
  height: var(--book-two-index-disc);
  margin-top: var(--book-two-index-gap);
  width: var(--book-two-index-disc);
}

.assessment-shell .assessment-command {
  gap: 32px;
}

.assessment-shell .assessment-command > div:first-child {
  min-width: 0;
}

.assessment-shell .assessment-command h1 {
  overflow-wrap: anywhere;
  line-height: 1.05;
}

@media (max-width: 720px) {
  .assessment-shell .assessment-command h1 {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }
}

.assessment-shell .assessment-state p, .assessment-shell .assessment-readiness > div:first-child p, .assessment-shell .assessment-readiness li, .assessment-shell .assessment-prior span, .assessment-shell .assessment-prior small, .assessment-shell .assessment-verdict > p {
  color: var(--theme-muted);
}

.assessment-shell .assessment-prior strong {
  color: var(--theme-link, var(--cobalt-deep));
}

.assessment-shell .assessment-state a.is-secondary, .assessment-shell .assessment-result-actions .is-secondary {
  color: var(--theme-text);
}

.assessment-shell .assessment-stage > [role="alert"] {
  grid-column: 2 / -1;
  margin: 0;
  padding: 20px clamp(20px, 5vw, 72px);
  line-height: 1.6;
}

.assessment-shell {
  background: var(--paper);
  color: var(--ink);
  min-height: var(--app-vh);
}

.assessment-header {
  background: var(--cobalt-deep);
  color: var(--white);
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 clamp(20px, 3vw, 52px);
  display: flex;
}

.assessment-header > a {
  display: inline-flex;
}

.assessment-header nav {
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  display: flex;
}

.assessment-header nav > a {
  font-size: .82rem;
}

.assessment-header nav > a:hover {
  color: var(--saffron-pale);
}

.assessment-command {
  background: var(--cobalt);
  color: var(--white);
  justify-content: space-between;
  align-items: end;
  min-height: 260px;
  padding: 54px clamp(24px, 6vw, 96px);
  display: flex;
}

.assessment-command > div:first-child > span {
  color: var(--saffron-pale);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}

.assessment-command h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 600;
  line-height: .84;
}

.assessment-command p {
  color: var(--cobalt-tint);
  margin: 20px 0 0;
}

.assessment-standard {
  text-align: right;
  border-left: 1px solid #ffffff59;
  gap: 8px;
  padding: 12px 0 12px 32px;
  display: grid;
}

.assessment-standard strong {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2rem;
}

.assessment-standard span {
  color: var(--cobalt-tint);
  font-size: .75rem;
}

.assessment-state {
  align-content: center;
  min-height: 430px;
  padding: 72px clamp(24px, 8vw, 128px);
}

.assessment-state h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.assessment-state p {
  color: #526077;
  max-width: 58ch;
  margin: 20px 0 0;
  line-height: 1.6;
}

.assessment-state > div {
  gap: 12px;
  margin-top: 32px;
  display: flex;
}

.assessment-state a {
  background: var(--cobalt);
  color: var(--white);
  padding: 18px 24px;
  font-weight: 800;
}

.assessment-state a.is-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: none;
}

.assessment-readiness {
  grid-template-columns: minmax(280px, 1.2fr) minmax(300px, 1fr) 180px 220px;
  align-items: stretch;
  max-width: 1480px;
  min-height: 410px;
  margin: 0 auto;
  display: grid;
}

.assessment-readiness > * {
  border-right: 1px solid var(--line-light);
  align-content: center;
  margin: 0;
  padding: clamp(30px, 4vw, 58px);
}

.assessment-readiness > div:first-child h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: .95;
}

.assessment-readiness > div:first-child p {
  color: #526077;
  margin: 22px 0 0;
  line-height: 1.6;
}

.assessment-readiness ol {
  gap: 18px;
  list-style: none;
  display: grid;
}

.assessment-readiness li {
  border-top: 1px solid var(--line-light);
  color: #344052;
  padding-top: 16px;
  font-size: .8rem;
  line-height: 1.5;
}

.assessment-prior {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  display: flex;
}

.assessment-prior span, .assessment-prior small {
  color: #667180;
  font-size: .68rem;
}

.assessment-prior strong {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  margin: 12px 0;
  font-size: 4rem;
  line-height: 1;
}

.assessment-readiness > button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  border: 0;
  align-self: center;
  min-height: 64px;
  margin: 36px;
  padding: 0 24px;
  font-weight: 800;
}

.assessment-readiness > button:hover {
  background: var(--saffron-pale);
}

.assessment-stage {
  background: var(--ink);
  color: var(--white);
  min-height: calc(var(--app-vh) - 328px);
  grid-template-columns: 116px minmax(0, 1.15fr) minmax(380px, .85fr);
  display: grid;
}

.assessment-stage > aside {
  border-right: 1px solid #343d46;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 48px 24px;
  display: flex;
}

.assessment-stage > aside strong {
  color: var(--saffron);
  font-family: var(--font-display);
  font-size: 3rem;
}

.assessment-stage > aside span {
  color: var(--ink-tint);
  font-size: .7rem;
}

.assessment-stage > aside > div {
  background: #343d46;
  flex: 1;
  width: 3px;
  min-height: 180px;
  margin-top: 22px;
  position: relative;
  overflow: hidden;
}

.assessment-stage > aside i {
  background: var(--saffron);
  height: 100%;
  transform: scaleY(var(--assessment-progress));
  transform-origin: bottom;
  width: 100%;
  transition: transform .18s ease-out;
  display: block;
  position: absolute;
  bottom: 0;
}

.assessment-question {
  border-right: 1px solid #343d46;
  align-content: center;
  padding: clamp(44px, 7vw, 108px);
}

.assessment-question > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .9rem;
  font-weight: 700;
}

.assessment-question h2 {
  color: var(--ink-tint);
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 500;
}

.assessment-question > p {
  font-family: var(--font-arabic);
  text-align: center;
  margin: 38px 0 0;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 1.55;
}

.assessment-stage fieldset {
  border: 0;
  align-content: center;
  gap: 12px;
  margin: 0;
  padding: clamp(36px, 5vw, 72px);
  display: grid;
}

.assessment-stage legend {
  color: var(--ink-tint);
  text-transform: uppercase;
  padding: 0 0 18px;
  font-size: .72rem;
}

.assessment-stage label {
  cursor: pointer;
  border: 1px solid #4b5661;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 12px 18px;
  display: grid;
}

.assessment-stage label:hover {
  border-color: var(--saffron);
}

.assessment-stage label.is-selected {
  background: var(--cobalt);
  border-color: var(--saffron);
}

.assessment-stage label input {
  opacity: 0;
  position: absolute;
}

.assessment-stage label > span {
  border: 1px solid;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  display: flex;
}

.assessment-stage label strong {
  font-size: .88rem;
}

.assessment-stage label strong[lang="ar"] {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  font-weight: 500;
}

.assessment-stage footer {
  border-top: 1px solid #343d46;
  grid-column: 2 / -1;
  justify-content: flex-end;
  align-items: center;
  min-height: 96px;
  padding: 16px clamp(36px, 5vw, 72px);
  display: flex;
}

.assessment-stage footer button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  border: 0;
  min-width: 220px;
  min-height: 58px;
  padding: 0 24px;
  font-weight: 800;
}

.assessment-stage footer button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.assessment-result {
  grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr) 260px;
  max-width: 1480px;
  min-height: 470px;
  margin: 0 auto;
  display: grid;
}

.assessment-result > * {
  border-right: 1px solid var(--line-light);
  align-content: center;
  padding: clamp(36px, 5vw, 72px);
}

.assessment-score {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  display: flex;
}

.assessment-score span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: 700;
}

.assessment-score strong {
  font-family: var(--font-display);
  margin: 18px 0;
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: .9;
}

.assessment-result.is-pass .assessment-score {
  background: var(--success);
  color: var(--white);
}

.assessment-result.is-review .assessment-score {
  background: var(--saffron);
  color: var(--ink);
}

.assessment-verdict h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: .9;
}

.assessment-verdict > p {
  color: #526077;
  max-width: 62ch;
  margin: 24px 0 0;
  line-height: 1.6;
}

.assessment-verdict ol {
  border-top: 1px solid var(--line-light);
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.assessment-verdict li {
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  display: grid;
}

.assessment-verdict li span {
  border: 1px solid var(--line);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  display: flex;
}

.assessment-verdict li p {
  margin: 0;
}

.assessment-result-actions {
  align-content: center;
  gap: 12px;
  display: grid;
}

.assessment-result-actions a, .assessment-result-actions button {
  background: var(--cobalt);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: center;
  border: 0;
  min-height: 58px;
  padding: 18px;
  font-weight: 800;
}

.assessment-result-actions .is-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: none;
}

.dashboard-assessment-step {
  border-bottom: 1px solid var(--line-light);
  background: #eef1f7;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 14px;
  display: grid;
}

.dashboard-assessment-step > span {
  border: 1px solid var(--cobalt);
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-weight: 700;
  display: flex;
}

.dashboard-assessment-step > div {
  gap: 3px;
  display: grid;
}

.dashboard-assessment-step small {
  color: #667180;
  font-size: .62rem;
}

.dashboard-assessment-step > a {
  color: var(--cobalt-deep);
  font-weight: 800;
}

.dashboard-assessment-step > b {
  color: #8993a1;
  font-size: .68rem;
}

.dashboard-assessment-step.is-complete > span {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.assessment-stage label:focus-within {
  outline: 3px solid var(--saffron-pale);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .assessment-readiness {
    grid-template-columns: 1fr 1fr;
  }

  .assessment-readiness > button {
    min-height: 64px;
  }

  .assessment-stage {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .assessment-question {
    border-right: 0;
  }

  .assessment-stage fieldset {
    border-top: 1px solid #343d46;
    grid-column: 2;
  }

  .assessment-stage footer {
    grid-column: 2;
  }

  .assessment-result {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .assessment-result-actions {
    border-top: 1px solid var(--line-light);
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .assessment-header {
    height: 62px;
    padding: 0 18px;
  }

  .assessment-header nav {
    gap: 15px;
  }

  .assessment-header nav > a {
    font-size: .7rem;
  }

  .assessment-command {
    align-items: flex-start;
    min-height: 260px;
    padding: 42px 20px;
    display: block;
  }

  .assessment-command h1 {
    font-size: 4rem;
  }

  .assessment-standard {
    text-align: left;
    border-top: 1px solid #ffffff59;
    border-left: 0;
    margin-top: 30px;
    padding: 22px 0 0;
  }

  .assessment-standard strong {
    font-size: 1.55rem;
  }

  .assessment-readiness {
    display: block;
  }

  .assessment-readiness > * {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
    padding: 34px 20px;
  }

  .assessment-readiness > button {
    width: calc(100% - 40px);
    margin: 24px 20px 36px;
  }

  .assessment-state {
    min-height: 410px;
    padding: 54px 20px;
  }

  .assessment-state > div {
    flex-direction: column;
    align-items: stretch;
  }

  .assessment-state a {
    text-align: center;
  }

  .assessment-stage {
    min-height: calc(var(--app-vh) - 322px);
    display: block;
  }

  .assessment-stage > aside {
    border-bottom: 1px solid #343d46;
    border-right: 0;
    grid-template-columns: auto auto minmax(80px, 1fr);
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    display: grid;
  }

  .assessment-stage > aside strong {
    font-size: 2rem;
  }

  .assessment-stage > aside > div {
    width: 100%;
    height: 3px;
    min-height: 0;
    margin: 0;
  }

  .assessment-stage > aside i {
    height: 100%;
    transform: scaleX(var(--assessment-progress));
    transform-origin: 0;
    width: 100%;
  }

  .assessment-question {
    min-height: 300px;
    padding: 46px 20px;
  }

  .assessment-question > p {
    margin-top: 28px;
    font-size: 3.25rem;
  }

  .assessment-stage fieldset {
    padding: 28px 20px;
  }

  .assessment-stage footer {
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    justify-content: stretch;
  }

  .assessment-stage footer button {
    width: 100%;
  }

  .assessment-result {
    display: block;
  }

  .assessment-result > * {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
    padding: 42px 20px;
  }

  .assessment-score {
    min-height: 270px;
  }

  .assessment-verdict h2 {
    font-size: 3.65rem;
  }

  .assessment-result-actions {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.free-account-cta {
  background: var(--ink);
  color: var(--white);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(44px, 6vw, 82px) clamp(24px, 5vw, 78px);
  display: grid;
}

.free-account-cta h2 {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 600;
  line-height: .92;
}

.free-account-cta p {
  color: var(--ink-tint);
  max-width: 66ch;
  margin: 20px 0 0;
  line-height: 1.6;
}

.free-account-cta > a {
  background: var(--saffron);
  color: var(--ink);
  text-align: center;
  justify-content: center;
  align-items: center;
  min-width: 210px;
  min-height: 64px;
  padding: 0 28px;
  font-weight: 700;
  display: flex;
}

.free-account-cta > a:hover {
  background: var(--saffron-pale);
}

.unit-practice-shell {
  background: var(--ink);
  color: var(--white);
  min-height: var(--app-vh);
  width: 100%;
}

.unit-practice-header {
  background: var(--cobalt-deep);
  border-bottom: 1px solid #ffffff47;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 clamp(20px, 3vw, 52px);
  display: grid;
}

.unit-practice-header p {
  color: var(--cobalt-tint);
  margin: 0;
  font-size: .76rem;
}

.unit-module-layout {
  min-height: calc(var(--app-vh) - 68px);
  grid-template-columns: minmax(260px, 23vw) minmax(0, 1fr);
  display: grid;
}

.unit-module-rail {
  background: var(--cobalt);
  flex-direction: column;
  padding: clamp(42px, 5vw, 76px) clamp(24px, 3vw, 46px) 34px;
  display: flex;
}

.unit-module-rail h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 8ch;
  margin: 0;
  font-size: 3.5rem;
  font-weight: 600;
  line-height: .92;
}

.unit-module-rail > div:first-child > p {
  color: var(--cobalt-tint);
  margin: 22px 0 0;
  font-size: .85rem;
  line-height: 1.6;
}

.unit-module-progress {
  background: #ffffff38;
  height: 3px;
  margin-top: 38px;
  overflow: hidden;
}

.unit-module-progress span {
  background: var(--saffron);
  transform-origin: 0;
  height: 100%;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
  display: block;
}

.unit-module-rail > p {
  color: var(--cobalt-tint);
  margin: 12px 0 0;
  font-size: .72rem;
}

.unit-module-rail > a {
  color: var(--white);
  border-top: 1px solid #ffffff47;
  margin-top: auto;
  padding-top: 22px;
  font-size: .78rem;
}

.unit-module-rail > a:hover {
  color: var(--saffron);
}

.unit-module-stage {
  background: var(--ink);
  padding: clamp(36px, 5vw, 74px) clamp(24px, 6vw, 100px);
}

.unit-stage-heading {
  border-bottom: 1px solid #343d46;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 18px;
  display: flex;
}

.unit-stage-heading h2 {
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.65rem;
}

.unit-stage-heading p {
  color: var(--ink-tint);
  margin: 0;
  font-size: .78rem;
}

.vocabulary-stage-heading {
  align-items: center;
}

.vocabulary-stage-heading > div:first-child > h2 {
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.65rem;
}

.vocabulary-stage-heading > div:first-child > p {
  color: var(--ink-tint);
  margin: 7px 0 0;
  font-size: .78rem;
}

.vocabulary-step-nav {
  align-items: center;
  gap: 10px;
  display: flex;
}

.vocabulary-nav-position {
  color: var(--ink-tint);
  text-align: center;
  min-width: 52px;
  font-size: .72rem;
}

.vocabulary-nav-label {
  display: none;
}

.vocabulary-step-nav > button {
  background: var(--ink-lift);
  color: var(--white);
  cursor: pointer;
  border: 1px solid #485059;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  transition: background-color .16s ease-out, border-color .16s ease-out, color .16s ease-out;
  display: flex;
}

.vocabulary-step-nav > button:hover:not(:disabled) {
  border-color: var(--saffron);
  color: var(--saffron);
  background: #182129;
}

.vocabulary-step-nav > button:disabled {
  color: #78818a;
  cursor: not-allowed;
  opacity: .45;
}

.vocabulary-step-nav svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  width: 22px;
  height: 22px;
}

.unit-audio-control {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #485059;
  border-radius: 15px;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 20px;
  font-weight: 700;
}

.unit-audio-control:hover {
  background: var(--ink-lift);
  border-color: var(--saffron);
}

.practice-arabic-focus {
  font-family: var(--font-arabic);
  text-align: center;
  margin: 58px 0 0;
  font-size: 5rem;
  font-weight: 600;
  line-height: 1.5;
}

.practice-transliteration {
  color: var(--saffron);
  text-align: center;
  margin: 6px 0 48px;
}

.unit-primary-action {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  min-height: 58px;
  padding: 0 24px;
  font-weight: 700;
}

.unit-primary-action:hover {
  background: var(--saffron-pale);
}

.vocabulary-practice > .unit-primary-action {
  margin: 0 auto;
  display: block;
}

.vocabulary-reveal {
  background: var(--ink-lift);
  border: 1px solid #485059;
  border-radius: 15px;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 30px;
  display: grid;
}

.vocabulary-reveal > strong {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.65rem;
}

.vocabulary-reveal > p {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: 2rem;
  line-height: 1.55;
}

.vocabulary-reveal > small {
  color: var(--ink-tint);
}

.vocabulary-reveal > .unit-primary-action {
  justify-self: start;
  margin-top: 14px;
}

.dialogue-prompt {
  background: var(--ink-lift);
  border: 1px solid #485059;
  border-radius: 15px;
  margin-top: 34px;
  padding: 20px 24px;
  display: grid;
}

.dialogue-prompt > span {
  color: var(--saffron);
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 700;
}

.dialogue-prompt > p {
  font-family: var(--font-arabic);
  margin: 4px 0;
  font-size: 2.6rem;
  line-height: 1.5;
}

.dialogue-prompt > small {
  color: var(--ink-tint);
}

.dialogue-prompt > button, .classroom-example > button {
  border: 0;
  border-bottom: 1px solid var(--saffron);
  color: var(--saffron);
  cursor: pointer;
  background: none;
  justify-self: end;
  min-height: 44px;
  padding: 10px 0;
}

.unit-answer-list {
  gap: 10px;
  margin-top: 24px;
  display: grid;
}

.unit-answer-list > button {
  background: var(--ink-lift);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  border: 1px solid #485059;
  border-radius: 15px;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 12px 20px;
  display: flex;
}

.unit-answer-list > button:hover {
  border-color: var(--saffron);
  background: #182129;
}

.unit-answer-list > button > span {
  font-family: var(--font-arabic);
  font-size: 1.45rem;
}

.unit-answer-list > button > small {
  color: var(--ink-tint);
}

.unit-answer-list > button.is-correct {
  border-color: var(--saffron);
}

.unit-answer-list > button.is-incorrect {
  border-color: #cf6a5f;
}

.unit-choice-feedback {
  border-top: 1px solid #485059;
  margin-top: 24px;
  padding-top: 20px;
}

.unit-choice-feedback > p {
  color: var(--ink-tint);
  margin: 0;
  line-height: 1.55;
}

.unit-choice-feedback.is-correct > p {
  color: var(--saffron-pale);
}

.unit-choice-feedback.is-incorrect > p {
  color: #f0a89d;
}

.unit-choice-feedback > .unit-primary-action {
  margin-top: 20px;
}

.speaking-review {
  border-top: 1px solid #485059;
  margin-top: 26px;
  padding-top: 24px;
}

.speaking-review-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  display: flex;
}

.speaking-review-heading h3 {
  font-family: var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.65rem;
}

.speaking-review-heading p {
  color: var(--ink-tint);
  max-width: 62ch;
  margin: 7px 0 0;
  font-size: .78rem;
  line-height: 1.55;
}

.speaking-review-heading > .audio-button-control {
  flex: none;
}

.speaking-review-target {
  font-family: var(--font-arabic);
  text-align: center;
  margin: 26px 0 22px;
  font-size: 2.2rem;
  line-height: 1.55;
}

.speaking-review-hidden-target {
  color: var(--ink-tint);
  text-align: center;
  border-top: 1px solid #485059;
  border-bottom: 1px solid #485059;
  margin: 26px 0 22px;
  padding: 24px 0;
}

.speaking-review .practice-response {
  margin-top: 0;
}

.speaking-review-result > div {
  min-width: 0;
}

.speaking-review-result > div > span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 700;
  display: block;
}

.speaking-review-result > div > p {
  color: var(--white);
  font-family: var(--font-arabic);
  overflow-wrap: anywhere;
  margin: 2px 0 5px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.speaking-review-result > div > small {
  color: var(--ink-tint);
  line-height: 1.45;
  display: block;
}

.speaking-review-note {
  color: var(--ink-tint);
  max-width: 76ch;
  margin-top: 18px;
  font-size: .68rem;
  line-height: 1.5;
  display: block;
}

.classroom-object-word {
  text-align: center;
  border-bottom: 1px solid #343d46;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
  padding: 24px 0;
  display: flex;
}

.classroom-object-word strong {
  font-family: var(--font-display);
  overflow-wrap: anywhere;
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1.25;
}

.classroom-answers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.classroom-answers > button {
  justify-content: center;
}

.classroom-answers > button > span {
  font-size: 2rem;
}

.classroom-example {
  background: var(--ink-lift);
  border: 1px solid #485059;
  border-radius: 15px;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 14px 18px;
  display: flex;
}

.classroom-example > p {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.5;
}

.unit-audio-message {
  color: var(--saffron-pale);
  margin-top: 18px;
  font-size: .75rem;
}

.unit-module-complete {
  background: var(--cobalt);
  min-height: calc(var(--app-vh) - 68px);
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(34px, 7vw, 100px);
  padding: clamp(54px, 8vw, 120px);
  display: grid;
}

.unit-module-complete > div:first-child {
  border: 2px solid var(--saffron);
  color: var(--saffron);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 116px;
  height: 116px;
  font-size: 2rem;
  display: flex;
}

.unit-module-complete h1 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 10ch;
  margin: 0;
  font-size: 5rem;
  font-weight: 600;
  line-height: .9;
}

.unit-module-complete p {
  color: var(--cobalt-tint);
  max-width: 55ch;
  margin: 26px 0 0;
  line-height: 1.65;
}

.unit-module-complete > div:nth-child(2) > div {
  gap: 18px;
  margin-top: 32px;
  display: flex;
}

.unit-module-complete button, .unit-module-complete a {
  align-items: center;
  min-height: 58px;
  padding: 0 24px;
  font-weight: 700;
  display: flex;
}

.unit-module-complete button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
}

.unit-module-complete a {
  border-bottom: 2px solid var(--saffron);
  color: var(--saffron);
}

.unit-module-complete button:hover {
  background: var(--saffron-pale);
}

.unit-module-complete a:hover {
  color: var(--saffron-pale);
}

.unit-module-complete a.unit-complete-primary {
  background: var(--saffron);
  color: var(--ink);
  border: 0;
}

.unit-module-complete a.unit-complete-primary:hover {
  background: var(--saffron-pale);
  color: var(--ink);
}

.framework-lesson-stage {
  min-width: 0;
}

.framework-guided-focus {
  border-bottom: 1px solid #343d46;
  justify-items: center;
  padding: clamp(38px, 6vw, 72px) 0 30px;
  display: grid;
}

.framework-guided-focus > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 700;
}

.framework-guided-focus > p {
  font-family: var(--font-arabic);
  text-align: center;
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.55;
}

.framework-guided-focus > small {
  color: var(--ink-tint);
  margin-top: 10px;
}

.framework-recall-prompt {
  text-align: center;
  border-bottom: 1px solid #343d46;
  place-items: start center;
  padding: clamp(48px, 7vw, 92px) 0 44px;
  display: grid;
}

.framework-recall-prompt > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 700;
}

.framework-recall-prompt > strong {
  font-family: var(--font-display);
  letter-spacing: -.025em;
  max-width: 12ch;
  margin-top: 18px;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 600;
  line-height: .92;
}

.framework-recall-prompt > small {
  color: var(--ink-tint);
  margin-top: 22px;
}

.framework-dialogue-cue {
  background: var(--ink-lift);
  border: 1px solid #485059;
  border-radius: 15px;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 34px;
  padding: 22px 24px;
  display: flex;
}

.framework-dialogue-cue > div {
  min-width: 0;
  display: grid;
}

.framework-dialogue-cue > div > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
}

.framework-dialogue-cue > div > strong {
  font-family: var(--font-arabic);
  margin-top: 4px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.5;
}

.framework-dialogue-cue > div > small {
  color: var(--ink-tint);
}

.framework-dialogue-cue > .audio-button-control {
  flex: none;
}

.framework-theme-word {
  border-bottom: 1px solid #343d46;
  margin-bottom: 30px;
  padding-bottom: 26px;
}

.framework-meaning-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.framework-meaning-choices > button > span {
  font-family: var(--font-ui);
  font-size: .9rem;
}

.framework-save-status {
  color: var(--ink-tint);
  margin-top: 14px;
  font-size: .8rem;
}

.framework-save-status p {
  margin: 0;
}

@media (max-width: 680px) {
  .framework-guided-focus > p {
    text-align: start;
    width: 100%;
    font-size: 2.65rem;
  }

  .framework-guided-focus {
    justify-items: start;
  }

  .framework-recall-prompt > strong {
    font-size: 3.5rem;
  }

  .framework-dialogue-cue {
    flex-direction: column;
    align-items: flex-start;
  }

  .framework-dialogue-cue > .audio-button-control {
    align-items: flex-start;
  }

  .framework-meaning-choices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .unit-hub-intro {
    grid-template-columns: 1fr;
  }

  .unit-hub-title-field {
    min-height: 430px;
  }

  .unit-hub-arabic-field, .unit-framework-hub .unit-hub-title-field {
    min-height: 360px;
  }

  .unit-framework-hub .unit-hub-arabic-field {
    min-height: 280px;
  }

  .unit-lesson-list > li {
    grid-template-columns: 90px minmax(280px, 1fr) minmax(210px, .7fr);
  }

  .unit-lesson-list > li > a {
    grid-column: 2 / -1;
    justify-self: start;
    min-width: 220px;
    margin-top: 0;
  }

  .unit-module-layout {
    display: block;
  }

  .unit-module-rail {
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr);
    gap: 18px 28px;
    padding: 28px 30px;
    display: grid;
  }

  .unit-module-rail h1 {
    max-width: none;
    font-size: 2.8rem;
  }

  .unit-module-rail > div:first-child > p {
    margin-top: 12px;
  }

  .unit-module-progress {
    align-self: end;
    margin-top: 0;
  }

  .unit-module-rail > p {
    grid-column: 2;
  }

  .unit-module-rail > a {
    border-top: 0;
    grid-column: 1;
    margin-top: 0;
    padding-top: 0;
  }

  .unit-module-complete h1 {
    font-size: 4.2rem;
  }
}

@media (max-width: 680px) {
  .unit-hub-header {
    height: 62px;
    padding: 0 18px;
  }

  .unit-hub-header nav {
    gap: 18px;
  }

  .unit-hub-header nav a {
    padding: 22px 0 19px;
    font-size: .72rem;
  }

  .unit-hub-header nav a[aria-current="page"] {
    display: none;
  }

  .unit-hub-title-field {
    min-height: 390px;
    padding: 56px 22px;
  }

  .unit-hub-title-field h1 {
    font-size: 4rem;
  }

  .unit-hub-arabic-field {
    min-height: 330px;
    padding: 36px 22px;
  }

  .unit-framework-hub .unit-hub-title-field {
    min-height: 340px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .unit-framework-hub .unit-hub-arabic-field {
    min-height: 250px;
  }

  .unit-framework-hub .unit-hub-title-field h1 {
    font-size: 3.65rem;
  }

  .unit-framework-hub .unit-hub-title-field p {
    margin-top: 20px;
  }

  .unit-framework-hub .unit-hub-intro-action {
    width: 100%;
    margin-top: 22px;
  }

  .unit-hub-arabic-field > p {
    font-size: 2.35rem;
  }

  .unit-lesson-desk > header {
    align-items: flex-start;
    padding: 38px 20px 26px;
    display: block;
  }

  .unit-lesson-desk > header h2 {
    font-size: 2.2rem;
  }

  .unit-lesson-desk > header > span {
    margin-top: 18px;
    display: block;
  }

  .unit-lesson-progress {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 16px 20px;
  }

  .unit-lesson-list > li, .unit-lesson-list > li:first-child {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 0;
  }

  .unit-lesson-list > li > * {
    padding: 22px 18px;
  }

  .unit-lesson-number {
    grid-row: 1 / span 3;
  }

  .unit-lesson-copy, .unit-lesson-arabic, .unit-lesson-list > li > a {
    grid-column: 2;
    border-right: 0 !important;
  }

  .unit-lesson-arabic {
    border-top: 1px solid var(--line-light);
    text-align: left;
  }

  .unit-lesson-list > li:first-child .unit-lesson-arabic {
    border-color: #343d46;
  }

  .unit-lesson-list > li > a {
    justify-self: stretch;
    min-width: 0;
    margin: 0 18px 22px;
  }

  .unit-assessment-row {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 0;
  }

  .unit-assessment-row > * {
    padding: 22px 18px;
  }

  .unit-assessment-row > div:first-child {
    grid-row: 1 / span 3;
  }

  .unit-assessment-row > div:nth-child(2), .unit-assessment-row > p, .unit-assessment-row > a, .unit-assessment-locked {
    border-right: 0;
    grid-column: 2;
  }

  .unit-assessment-row > p {
    border-top: 1px solid var(--line-light);
    text-align: left;
  }

  .unit-assessment-row > a {
    justify-self: stretch;
    margin: 0 18px 22px;
  }

  .free-account-cta {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .free-account-cta h2 {
    max-width: 12ch;
  }

  .free-account-cta > a {
    min-width: 0;
  }

  .unit-practice-header {
    grid-template-columns: 1fr 1fr;
    height: 62px;
    padding: 0 18px;
  }

  .unit-practice-header p {
    display: none;
  }

  .unit-practice-header > nav {
    gap: 14px;
  }

  .unit-practice-header > nav a {
    font-size: .7rem;
  }

  .unit-module-rail {
    padding: 26px 20px;
    display: block;
  }

  .unit-module-progress {
    margin-top: 24px;
  }

  .unit-module-rail > a {
    margin-top: 20px;
    display: block;
  }

  .unit-module-stage {
    padding: 30px 20px 44px;
  }

  .unit-stage-heading {
    align-items: flex-start;
    display: block;
  }

  .unit-stage-heading p {
    margin-top: 8px;
  }

  .vocabulary-step-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 18px;
    display: grid;
  }

  .vocabulary-nav-position {
    grid-area: 1 / 1 / auto / -1;
    min-width: 0;
  }

  .vocabulary-step-nav > button {
    border-radius: 15px;
    gap: 9px;
    width: 100%;
    height: 58px;
    padding: 0 14px;
  }

  .vocabulary-nav-label {
    font-size: .78rem;
    font-weight: 700;
    display: inline;
  }

  .practice-arabic-focus {
    margin-top: 38px;
    font-size: 3.7rem;
  }

  .dialogue-prompt > p {
    font-size: 2rem;
  }

  .unit-answer-list > button {
    flex-direction: column;
    align-items: flex-start;
  }

  .speaking-review-heading {
    display: block;
  }

  .speaking-review-heading > .audio-button-control {
    align-items: center;
    margin: 16px auto 0;
  }

  .speaking-review-target {
    text-align: start;
    font-size: 1.9rem;
  }

  .classroom-answers {
    grid-template-columns: 1fr;
  }

  .classroom-answers > button {
    align-items: center;
  }

  .classroom-example {
    flex-direction: column;
    align-items: flex-start;
  }

  .classroom-example > button {
    align-self: flex-end;
  }

  .unit-module-complete {
    min-height: calc(var(--app-vh) - 62px);
    grid-template-columns: 1fr;
    align-items: start;
    padding: 54px 24px;
  }

  .unit-module-complete h1 {
    font-size: 3.8rem;
  }

  .unit-module-complete > div:nth-child(2) > div {
    flex-direction: column;
    align-items: stretch;
  }

  .unit-module-complete button, .unit-module-complete a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.app-header {
  background: var(--cobalt-deep);
  color: var(--white);
  height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(clamp(22px, 4vw, 58px), env(safe-area-inset-right)) 0 max(clamp(22px, 4vw, 58px), env(safe-area-inset-left));
  z-index: 20;
  border-bottom: 1px solid #ffffff47;
  justify-content: space-between;
  align-items: center;
  display: flex;
  position: relative;
}

.app-header nav {
  align-items: center;
  gap: clamp(16px, 2.5vw, 38px);
  display: flex;
}

.app-header-menu-toggle {
  display: none;
}

.app-header-sound-control {
  display: contents;
}

.app-header-sound-label, .app-header-theme-control {
  display: none;
}

.app-header nav a, .app-header nav button {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  min-height: 44px;
  padding: 14px 0 10px;
  font-size: .82rem;
}

.app-header nav a:hover, .app-header nav button:hover, .app-header nav a[aria-current="page"] {
  border-bottom-color: var(--saffron);
}

.app-header nav .app-header-signin {
  background: var(--saffron);
  color: var(--ink);
  border: 0;
  min-height: 42px;
  padding: 13px 18px;
  font-weight: 700;
}

.app-header-auth-pending {
  color: var(--cobalt-tint);
  align-items: center;
  min-height: 44px;
  font-size: .72rem;
  display: flex;
}

.feedback-sound-toggle {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #ffffff57;
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transition: border-color .16s ease-out, color .16s ease-out, background-color .16s ease-out;
  display: inline-flex;
}

.feedback-sound-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  width: 21px;
  height: 21px;
}

.feedback-sound-toggle svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.feedback-sound-toggle:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: #ffffff14;
}

.feedback-sound-toggle:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.feedback-sound-toggle[aria-pressed="false"] {
  color: var(--cobalt-tint);
}

.app-header nav .feedback-sound-toggle {
  border: 1px solid #ffffff57;
  min-height: 44px;
  padding: 0;
}

.app-header nav .feedback-sound-toggle:hover {
  border-color: var(--saffron);
}

.account-shell {
  background: var(--ink);
  color: var(--white);
  min-height: var(--app-vh);
}

.account-stage {
  min-height: calc(var(--app-vh) - 68px);
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
  display: grid;
}

.account-stage-login {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  align-items: start;
  padding: clamp(32px, 7vh, 72px) clamp(20px, 4vw, 48px);
}

.account-promise {
  background: var(--cobalt);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(58px, 8vw, 110px) clamp(28px, 7vw, 108px);
  display: flex;
  position: relative;
  overflow: hidden;
}

.account-promise:after {
  content: "";
  border: 1px dotted #ffffff7a;
  border-radius: 50%;
  width: 430px;
  height: 430px;
  position: absolute;
  top: 18%;
  right: -120px;
}

.account-promise h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
  z-index: 1;
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 600;
  line-height: .88;
  position: relative;
}

.account-promise > p {
  color: var(--cobalt-tint);
  z-index: 1;
  max-width: 50ch;
  margin: 34px 0 auto;
  line-height: 1.65;
  position: relative;
}

.account-arabic {
  color: var(--saffron);
  font-family: var(--font-arabic);
  z-index: 1;
  border-top: 1px solid #ffffff73;
  margin-top: 70px;
  padding-top: 28px;
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  line-height: 1.6;
  position: relative;
}

.login-panel {
  background: var(--ink-lift);
  border: 1px solid #46505a;
  align-self: center;
  margin: clamp(28px, 7vw, 100px);
  padding: clamp(28px, 5vw, 56px);
}

.login-panel h1 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 2.7rem;
  font-weight: 600;
  line-height: .95;
}

.account-stage-login .login-panel {
  width: 100%;
  margin: 0;
}

.login-intro > p {
  color: var(--ink-tint);
  margin: 16px 0 0;
  line-height: 1.55;
}

.login-panel form {
  margin-top: 24px;
}

.login-panel label {
  color: var(--ink-tint);
  margin-bottom: 9px;
  font-size: .76rem;
  font-weight: 700;
  display: block;
}

.login-panel form > label:not(:first-child) {
  margin-top: 18px;
}

.login-panel input {
  color: var(--white);
  background: #080c11;
  border: 1px solid #626e78;
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  font-size: 1rem;
}

.login-panel input::placeholder {
  color: #9ca7b0;
}

.login-submit, .google-signin {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  padding: 0 18px;
  font-weight: 700;
  display: flex;
}

.login-submit:hover {
  background: var(--saffron-pale);
}

.login-submit:disabled, .google-signin:disabled {
  cursor: wait;
  opacity: .7;
}

.google-signin {
  color: var(--white);
  background: none;
  border: 1px solid #626e78;
  gap: 12px;
  margin-top: 28px;
}

.google-signin > span {
  background: var(--white);
  color: var(--cobalt-deep);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  font-weight: 800;
  display: flex;
}

.google-signin:hover {
  border-color: var(--saffron);
  color: var(--saffron-pale);
}

.login-divider {
  color: #aeb8c0;
  text-transform: uppercase;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: .68rem;
  display: flex;
}

.login-divider:before, .login-divider:after {
  content: "";
  background: #46505a;
  flex: 1;
  height: 1px;
}

.login-mode-switch {
  border-bottom: 1px solid #46505a;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  display: grid;
}

.login-mode-switch button {
  color: var(--ink-tint);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 3px solid #0000;
  min-height: 46px;
  padding: 0 10px;
  font-weight: 700;
}

.login-mode-switch button[aria-pressed="true"] {
  border-bottom-color: var(--saffron);
  color: var(--white);
}

.login-password-label {
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  display: flex;
}

.login-password-label label {
  margin: 0;
}

.login-password-label button, .login-back {
  color: var(--saffron);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 7px 0;
  font-size: .76rem;
  font-weight: 700;
}

.login-back {
  margin-top: 14px;
}

.login-return-link {
  color: var(--saffron);
  text-underline-offset: 3px;
  margin-top: 16px;
  font-weight: 700;
  text-decoration: underline;
  display: inline-block;
}

.login-message {
  color: var(--saffron-pale);
  margin: 20px 0 0;
  line-height: 1.5;
}

.login-message.is-error {
  color: #ffc2bb;
}

.login-panel > small {
  color: #aeb8c0;
  margin-top: 24px;
  font-size: .68rem;
  line-height: 1.55;
  display: block;
}

.login-panel > small a {
  color: var(--saffron);
  text-underline-offset: 3px;
  text-decoration: underline;
}

.pricing-shell {
  background: var(--paper);
  min-height: var(--app-vh);
}

.pricing-intro {
  background: var(--cobalt);
  color: var(--white);
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  padding: clamp(60px, 8vw, 116px) clamp(26px, 7vw, 110px);
  display: grid;
}

.pricing-intro h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4rem, 6.5vw, 7rem);
  font-weight: 600;
  line-height: .88;
}

.pricing-intro div > p {
  color: var(--cobalt-tint);
  max-width: 56ch;
  margin: 30px 0 0;
  line-height: 1.65;
}

.pricing-intro > p {
  border-bottom: 1px solid var(--saffron);
  border-top: 1px solid var(--saffron);
  color: var(--saffron);
  font-family: var(--font-arabic);
  text-align: center;
  align-self: center;
  margin: 0;
  padding: 34px 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.8;
}

.pricing-workbench {
  grid-template-columns: .9fr 1.1fr;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) clamp(24px, 5vw, 72px) 36px;
  display: grid;
}

.pricing-includes {
  border-right: 1px solid #aeb7c8;
  padding-right: clamp(30px, 5vw, 72px);
}

.pricing-includes h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 3rem;
  font-weight: 600;
}

.pricing-includes ul {
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.pricing-includes li {
  border-top: 1px solid var(--line-light);
  padding: 16px 0;
  line-height: 1.45;
}

.pricing-includes li:before {
  color: var(--cobalt);
  content: "✓";
  margin-right: 12px;
  font-weight: 800;
}

.pricing-includes > a {
  border-bottom: 2px solid var(--cobalt);
  color: var(--cobalt-deep);
  padding: 10px 0;
  font-weight: 700;
  display: inline-block;
}

.price-selector {
  padding-left: clamp(30px, 5vw, 72px);
}

.price-selector article {
  border-bottom: 1px solid #aeb7c8;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 28px 0;
  display: flex;
}

.price-selector article:first-child {
  padding-top: 0;
}

.price-selector article.is-best-value {
  background: var(--ink);
  color: var(--white);
  margin: 0 -26px;
  padding: 30px 26px;
}

.price-selector article span {
  color: var(--cobalt-deep);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  display: block;
}

.price-selector .is-best-value span {
  color: var(--saffron);
}

.price-selector article strong {
  font-family: var(--font-display);
  margin-top: 10px;
  font-size: 5rem;
  font-weight: 600;
  line-height: .9;
  display: block;
}

.price-selector article small {
  color: #526077;
  margin-top: 8px;
  display: block;
}

.price-selector .is-best-value small {
  color: var(--ink-tint);
}

.price-selector button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  min-height: 54px;
  padding: 0 22px;
  font-weight: 700;
}

.price-selector button:hover {
  background: var(--saffron-pale);
}

.price-selector button:disabled {
  cursor: wait;
  opacity: .7;
}

.pricing-error {
  color: #8c2015;
  margin: 22px 0 0;
  line-height: 1.5;
}

.pricing-note {
  color: #526077;
  text-align: right;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px) 60px;
  font-size: .9rem;
  line-height: 1.6;
}

.pricing-note a, .pricing-agreement a {
  color: var(--cobalt-deep);
  text-underline-offset: 3px;
  font-weight: 700;
  text-decoration: underline;
}

.pricing-agreement {
  color: #526077;
  max-width: 70ch;
  margin: 24px 0 0;
  font-size: .9rem;
  line-height: 1.6;
}

.embedded-checkout-shell {
  background: var(--white);
  border: 2px solid var(--ink);
  margin-top: 30px;
  scroll-margin-top: 24px;
}

.embedded-checkout-shell > header {
  background: var(--ink);
  color: var(--white);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  display: flex;
}

.embedded-checkout-shell > header span {
  color: var(--saffron);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
  display: block;
}

.embedded-checkout-shell > header h3 {
  font-family: var(--font-display);
  margin: 7px 0 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.price-selector .embedded-checkout-close {
  color: var(--white);
  background: none;
  border: 1px solid #6d7480;
  min-height: 42px;
  padding: 0 16px;
}

.price-selector .embedded-checkout-close:hover {
  background: #20252d;
}

.embedded-checkout-trust {
  color: #526077;
  margin: 0;
  padding: 18px 22px 0;
  font-size: .84rem;
  line-height: 1.5;
}

.embedded-checkout-frame {
  min-height: 560px;
  padding: 8px;
}

.plan-change-panel {
  background: var(--saffron-pale);
  border: 2px solid var(--ink);
  margin-top: 28px;
  padding: 24px;
}

.plan-change-panel > span {
  color: var(--cobalt-deep);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
  display: block;
}

.plan-change-panel h3 {
  font-family: var(--font-display);
  margin: 10px 0 14px;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
}

.plan-change-panel p {
  margin: 0;
  line-height: 1.55;
}

.plan-change-panel > div {
  gap: 12px;
  margin-top: 22px;
  display: flex;
}

.price-selector .plan-change-cancel {
  border: 1px solid var(--ink);
  background: none;
}

.price-selector .plan-change-cancel:hover {
  background: var(--white);
}

.plan-change-success {
  color: #184c18;
  background: #e5f3df;
  border-left: 5px solid #2d722b;
  margin: 28px 0 0;
  padding: 18px 20px;
  line-height: 1.55;
}

.plan-change-success a {
  color: inherit;
  text-underline-offset: 3px;
  font-weight: 800;
  text-decoration: underline;
}

.legal-shell {
  background: var(--paper);
  min-height: var(--app-vh);
}

.legal-hero {
  background: var(--cobalt);
  color: var(--white);
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr);
  gap: clamp(44px, 8vw, 130px);
  padding: clamp(64px, 9vw, 128px) clamp(24px, 7vw, 110px);
  display: grid;
}

.legal-hero h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.5rem, 8vw, 7.6rem);
  font-weight: 600;
  line-height: .84;
}

.legal-hero > div > p {
  color: var(--cobalt-tint);
  max-width: 62ch;
  margin: 30px 0 0;
  font-size: 1.03rem;
  line-height: 1.7;
}

.legal-hero dl {
  border-top: 1px solid #ffffff7a;
  border-bottom: 1px solid #ffffff7a;
  align-self: end;
  margin: 0;
}

.legal-hero dl > div {
  border-bottom: 1px solid #fff3;
  grid-template-columns: 82px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  display: grid;
}

.legal-hero dl > div:last-child {
  border: 0;
}

.legal-hero dt {
  color: var(--cobalt-tint);
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
}

.legal-hero dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
}

.legal-hero dd a {
  border-bottom: 1px solid var(--saffron);
  color: var(--saffron);
}

.legal-layout {
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 100px) clamp(20px, 5vw, 72px) clamp(70px, 9vw, 130px);
  display: grid;
}

.legal-rail {
  background: var(--ink);
  color: var(--white);
  align-self: start;
  padding: 36px 30px;
  position: sticky;
  top: 24px;
}

.legal-rail > p {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.legal-rail nav {
  border-top: 1px solid #3b444d;
  margin-top: 22px;
  display: grid;
}

.legal-rail nav a {
  color: var(--ink-tint);
  border-bottom: 1px solid #3b444d;
  padding: 11px 0;
  font-size: .82rem;
  line-height: 1.4;
}

.legal-rail nav a:hover {
  color: var(--saffron);
}

.legal-rail > div {
  border-top: 1px solid var(--saffron);
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  display: grid;
}

.legal-rail > div strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
}

.legal-rail > div a {
  color: var(--ink-tint);
  font-size: .82rem;
}

.legal-rail > div a:hover {
  color: var(--saffron);
}

.legal-document {
  background: var(--white);
  padding: 0 clamp(34px, 7vw, 110px) clamp(70px, 8vw, 116px);
}

.legal-document > section {
  border-top: 1px solid var(--line-light);
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  padding: clamp(50px, 6vw, 82px) 0;
  scroll-margin-top: 24px;
  display: grid;
}

.legal-document > section > div {
  min-width: 0;
}

.legal-document > section:first-child {
  border-top: 0;
}

.legal-document h2 {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  letter-spacing: -.02em;
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.15rem);
  font-weight: 600;
  line-height: .95;
}

.legal-document section h3 {
  font-family: var(--font-display);
  margin: 32px 0 10px;
  font-size: 1.45rem;
  font-weight: 700;
}

.legal-document section h3:first-child {
  margin-top: 0;
}

.legal-document section p, .legal-document section li {
  color: #38465c;
  font-size: 1rem;
  line-height: 1.72;
}

.legal-document section p {
  max-width: 72ch;
  margin: 0 0 18px;
}

.legal-document section p:last-child {
  margin-bottom: 0;
}

.legal-document section ul, .legal-document section ol {
  max-width: 72ch;
  margin: 18px 0;
  padding-left: 22px;
}

.legal-document section li + li {
  margin-top: 10px;
}

.legal-document section a {
  color: var(--cobalt-deep);
  text-underline-offset: 3px;
  font-weight: 700;
  text-decoration: underline;
}

.legal-key-points {
  list-style: none;
  padding-left: 0 !important;
}

.legal-key-points li {
  border-top: 1px solid var(--line-light);
  padding: 14px 0 14px 28px;
  position: relative;
}

.legal-key-points li:before {
  color: var(--cobalt);
  content: "✓";
  font-weight: 800;
  position: absolute;
  top: 14px;
  left: 0;
}

.legal-table-wrap {
  margin: 10px 0 30px;
  overflow-x: auto;
}

.legal-document table {
  border-collapse: collapse;
  width: 100%;
  min-width: 690px;
}

.legal-document th {
  background: var(--cobalt-deep);
  color: var(--white);
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
  padding: 13px 14px;
  font-size: .75rem;
}

.legal-document td {
  border-bottom: 1px solid var(--line-light);
  color: #38465c;
  vertical-align: top;
  padding: 15px 14px;
  font-size: .82rem;
  line-height: 1.55;
}

.legal-document td:first-child {
  color: var(--ink);
  min-width: 120px;
  font-weight: 700;
}

.legal-contact-panel {
  background: var(--cobalt);
  color: var(--white);
  margin-top: 20px;
  padding: clamp(34px, 5vw, 62px);
}

.legal-contact-panel h2 {
  color: var(--white);
  max-width: 9ch;
  font-size: clamp(2.6rem, 4vw, 4.25rem);
}

.legal-contact-panel p {
  color: var(--cobalt-tint);
  max-width: 66ch;
  margin: 24px 0 0;
  line-height: 1.7;
}

.legal-contact-panel a {
  color: var(--saffron);
  text-underline-offset: 3px;
  font-weight: 700;
  text-decoration: underline;
}

.unit-vocab-shell {
  background: var(--paper);
  min-height: var(--app-vh);
  width: 100%;
}

.unit-access-state, .dashboard-state, .not-found-field {
  background: var(--cobalt);
  color: var(--white);
  min-height: calc(var(--app-vh) - 68px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(50px, 10vw, 140px);
  display: flex;
}

.unit-access-state h1, .dashboard-state h1, .not-found-field h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 600;
  line-height: .88;
}

.unit-access-state p, .dashboard-state p {
  color: var(--cobalt-tint);
  max-width: 52ch;
  margin: 26px 0 0;
  line-height: 1.6;
}

.unit-access-state a, .dashboard-state a, .not-found-field a {
  background: var(--saffron);
  color: var(--ink);
  margin-top: 30px;
  padding: 18px 24px;
  font-weight: 700;
}

.unit-vocab-heading {
  background: var(--cobalt);
  color: var(--white);
  justify-content: space-between;
  align-items: end;
  gap: 60px;
  padding: clamp(50px, 6vw, 86px) clamp(24px, 6vw, 92px);
  display: flex;
}

.unit-vocab-heading span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
}

.unit-vocab-heading h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
  margin: 10px 0 0;
  font-size: clamp(3.8rem, 6vw, 6.5rem);
  font-weight: 600;
  line-height: .88;
}

.unit-vocab-heading p {
  color: var(--cobalt-tint);
  max-width: 62ch;
  margin: 22px 0 0;
  line-height: 1.55;
}

.unit-vocab-heading button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  flex: none;
  min-height: 54px;
  padding: 0 22px;
  font-weight: 700;
}

.unit-vocab-heading-actions {
  flex: none;
  align-items: stretch;
  gap: 10px;
  display: flex;
}

.unit-vocab-heading-actions > a {
  border: 1px solid #fff9;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  font-weight: 700;
  display: flex;
}

.unit-vocab-heading-actions > a:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.vocab-workbench {
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 650px;
  display: grid;
}

.vocab-workbench > aside {
  background: var(--cobalt-deep);
  color: var(--white);
  padding: 42px 30px;
}

.vocab-workbench > aside > p {
  color: var(--cobalt-tint);
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.4rem;
}

.vocab-workbench > aside > div {
  background: #ffffff3d;
  height: 3px;
  margin-top: 18px;
  overflow: hidden;
}

.vocab-workbench > aside > div span {
  background: var(--saffron);
  transform-origin: 0;
  height: 100%;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
  display: block;
}

.vocab-workbench > aside > button {
  border: 0;
  border-bottom: 1px solid var(--saffron);
  color: var(--saffron);
  cursor: pointer;
  background: none;
  margin-top: 36px;
  padding: 12px 0;
  font-weight: 700;
}

.vocab-practice-field {
  background: var(--ink);
  color: var(--white);
  padding: clamp(42px, 6vw, 82px) clamp(24px, 8vw, 120px);
}

.vocab-practice-field > h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  font-size: 2.2rem;
  font-weight: 600;
}

.vocab-person-cue {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #4b555f;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: stretch;
  max-width: 640px;
  margin: 28px auto 0;
  display: grid;
}

.vocab-person-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.vocab-person-pair img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.vocab-person-cue figcaption {
  align-content: center;
  padding: 24px;
  display: grid;
}

.vocab-person-cue strong {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
}

.vocab-person-cue span {
  color: #4c586e;
  margin-top: 7px;
  font-size: .78rem;
  line-height: 1.5;
}

.vocab-focus-arabic {
  font-family: var(--font-arabic);
  text-align: center;
  margin: 24px 0 0;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 1.5;
}

.vocab-transliteration {
  color: var(--ink-tint);
  text-align: center;
  margin: -4px 0 34px;
}

.vocab-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 30px auto 0;
  display: grid;
}

.vocab-choices button {
  background: var(--ink-lift);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  border: 1px solid #4b555f;
  min-height: 62px;
  padding: 12px 16px;
}

.vocab-choices button:hover {
  border-color: var(--saffron);
}

.vocab-choices button.is-correct {
  border-color: var(--saffron);
  color: var(--saffron-pale);
}

.vocab-choices button.is-incorrect {
  color: #ffc2bb;
  border-color: #e78176;
}

.vocab-feedback {
  max-width: 760px;
  margin: 18px auto 0;
}

.vocab-feedback.is-error {
  color: #ffc2bb;
}

.vocab-speaking {
  border-top: 1px solid #4b555f;
  max-width: 760px;
  margin: 34px auto 0;
  padding-top: 28px;
}

.vocab-speaking > div:first-child {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.vocab-speaking h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2rem;
}

.vocab-speaking > div:first-child > .audio-button-control {
  flex: none;
}

.vocab-speaking > p {
  font-family: var(--font-arabic);
  margin: 24px 0 2px;
  font-size: 2.4rem;
  line-height: 1.55;
}

.vocab-speaking > small {
  color: var(--ink-tint);
}

.vocab-speaking .microphone-control {
  margin: 24px auto 4px;
}

.vocab-speaking form {
  margin-top: 16px;
}

.vocab-speaking form label {
  color: var(--ink-tint);
  margin-bottom: 7px;
  font-size: .72rem;
  display: block;
}

.vocab-speaking form > div {
  display: flex;
}

.vocab-speaking input {
  color: var(--white);
  font-family: var(--font-arabic);
  background: #161d24;
  border: 1px solid #4b555f;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  font-size: 1.15rem;
}

.vocab-recording-note {
  color: #aeb7c0;
  margin-top: 10px;
  font-size: .68rem;
  line-height: 1.45;
  display: block;
}

.vocab-speaking form button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  padding: 0 20px;
  font-weight: 700;
}

.vocab-score {
  border-top: 1px solid #4b555f;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
}

.vocab-score strong {
  border: 2px solid var(--saffron);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  display: flex;
}

.vocab-score span {
  color: var(--saffron-pale);
}

.vocab-speaking > .unit-primary-action {
  margin-top: 22px;
}

.vocab-save-message {
  color: var(--saffron-pale);
  max-width: 760px;
  margin: 18px auto 0;
}

.vocab-ledger {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.vocab-ledger button {
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  grid-template-columns: 44px minmax(120px, .65fr) 1fr;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 18px 28px;
  display: grid;
}

.vocab-ledger button:hover {
  background: #eef2ff;
}

.vocab-ledger button > span {
  color: var(--cobalt);
  font-family: var(--font-display);
  font-weight: 700;
}

.vocab-ledger button > strong {
  font-family: var(--font-arabic);
  font-size: 1.55rem;
  line-height: 1.4;
}

.vocab-ledger button > small {
  color: #4c586e;
}

.dashboard-shell {
  background: var(--paper);
  min-height: var(--app-vh);
}

.dashboard-command-bar {
  background: var(--cobalt);
  color: var(--white);
  justify-content: space-between;
  align-items: center;
  min-height: 104px;
  padding: 20px clamp(24px, 6vw, 92px);
  display: flex;
}

.dashboard-command-bar h1 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.dashboard-command-bar > div:first-child p {
  color: var(--cobalt-tint);
  margin: 8px 0 0;
  font-size: .72rem;
}

.dashboard-account-line {
  align-items: center;
  gap: 28px;
  display: flex;
}

.dashboard-account-line > div {
  text-align: right;
  border-right: 1px solid #ffffff59;
  padding-right: 28px;
}

.dashboard-account-line span {
  color: var(--cobalt-tint);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.dashboard-account-line.has-full-access span {
  color: var(--saffron);
}

.dashboard-account-line strong {
  overflow-wrap: anywhere;
  margin-top: 5px;
  font-size: .72rem;
  font-weight: 400;
  display: block;
}

.dashboard-account-line > small {
  color: var(--cobalt-tint);
  font-size: .72rem;
}

.dashboard-account-line > a, .dashboard-account-line > button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  min-height: 44px;
  padding: 0 18px;
  font-size: .72rem;
  font-weight: 800;
}

.dashboard-account-line .dashboard-plan-link {
  color: var(--white);
  white-space: nowrap;
  background: none;
  border: 1px solid #ffffff94;
  align-items: center;
  display: flex;
}

.dashboard-account-line .dashboard-plan-link:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.dashboard-billing {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: minmax(260px, 1fr) minmax(190px, .55fr) minmax(240px, .8fr);
  gap: 0;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
  display: grid;
}

.dashboard-billing > div {
  border-right: 1px solid var(--line-light);
  align-content: center;
  min-height: 156px;
  padding: 28px 34px;
  display: grid;
}

.dashboard-billing > div:first-child {
  padding-left: 0;
}

.dashboard-billing > div:nth-child(3) {
  border-right: 0;
  padding-right: 0;
}

.dashboard-billing span {
  color: var(--cobalt);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .85rem;
  font-weight: 700;
}

.dashboard-billing h2 {
  font-family: var(--font-display);
  margin: 7px 0 0;
  font-size: 2.2rem;
  line-height: 1;
}

.dashboard-billing p {
  color: #526077;
  max-width: 56ch;
  margin: 10px 0 0;
  font-size: .76rem;
  line-height: 1.5;
}

.dashboard-billing-status strong {
  font-family: var(--font-display);
  margin-top: 7px;
  font-size: 1.65rem;
  line-height: 1;
}

.dashboard-billing-status small {
  color: #526077;
  margin-top: 8px;
}

.dashboard-billing-actions {
  align-items: stretch;
  gap: 10px;
}

.dashboard-billing-actions a, .dashboard-billing-actions button, .dashboard-plan-change button {
  background: var(--saffron);
  border: 1px solid var(--saffron);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  font-size: .74rem;
  font-weight: 800;
  display: flex;
}

.dashboard-billing-actions .is-secondary, .dashboard-plan-change .is-secondary {
  border-color: var(--cobalt);
  color: var(--cobalt-deep);
  background: none;
}

.dashboard-billing-actions a:hover, .dashboard-billing-actions button:hover, .dashboard-plan-change button:hover {
  background: var(--saffron-pale);
}

.dashboard-billing-actions .is-secondary:hover, .dashboard-plan-change .is-secondary:hover {
  background: #eef2ff;
}

.dashboard-billing button:disabled {
  cursor: wait;
  opacity: .65;
}

.dashboard-plan-change {
  border-top: 1px solid var(--line-light);
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 28px;
  min-height: 0 !important;
  padding: 24px 0 !important;
  display: flex !important;
}

.dashboard-plan-change > div {
  border: 0;
  align-content: start;
  min-height: 0;
  padding: 0;
  display: grid;
}

.dashboard-plan-change > div:last-child {
  flex: 0 0 230px;
  align-content: center;
  gap: 9px;
}

.dashboard-plan-change strong {
  margin-top: 5px;
  font-size: 1rem;
}

.dashboard-billing-notice {
  border-top: 1px solid var(--line-light);
  grid-column: 1 / -1;
  padding: 16px 0;
  font-weight: 700;
  color: #245e23 !important;
  max-width: none !important;
  margin: 0 !important;
}

.dashboard-course-position {
  background: var(--white);
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
}

.dashboard-level-field {
  border-right: 1px solid var(--line-light);
  align-content: center;
  padding: 42px clamp(28px, 5vw, 68px);
  display: grid;
}

.dashboard-level-field > div {
  align-items: end;
  gap: 18px;
  display: flex;
}

.dashboard-level-field > div span {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  text-transform: uppercase;
  padding-bottom: 9px;
  font-size: 1.15rem;
  font-weight: 700;
}

.dashboard-level-field > div strong {
  color: var(--cobalt);
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 600;
  line-height: .75;
}

.dashboard-level-field h2 {
  font-family: var(--font-display);
  margin: 28px 0 0;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
}

.dashboard-level-field p {
  color: #526077;
  max-width: 48ch;
  margin: 14px 0 0;
  line-height: 1.55;
}

.dashboard-level-field p strong {
  color: var(--ink);
}

.dashboard-level-field > a {
  background: var(--saffron);
  color: var(--ink);
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 58px;
  margin-top: 28px;
  padding: 0 22px;
  font-weight: 800;
  display: flex;
}

.dashboard-level-field > a:hover {
  background: var(--saffron-pale);
}

.dashboard-lesson-map {
  min-width: 0;
  padding: 42px clamp(28px, 5vw, 68px);
}

.dashboard-lesson-map > header {
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  display: flex;
}

.dashboard-lesson-map h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
}

.dashboard-lesson-map header p {
  color: #526077;
  text-align: right;
  max-width: 38ch;
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
}

.dashboard-lesson-map ol {
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.dashboard-lesson-map li {
  border-top: 1px solid var(--line-light);
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 8px 14px 8px 0;
  display: grid;
}

.dashboard-lesson-map li:nth-child(odd) {
  border-right: 1px solid var(--line-light);
  margin-right: 20px;
}

.dashboard-lesson-map li span {
  border: 1px solid var(--cobalt);
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-weight: 700;
  display: flex;
}

.dashboard-lesson-map li a {
  font-weight: 700;
}

.dashboard-lesson-map li a:hover {
  color: var(--cobalt);
}

.dashboard-lesson-map li.is-locked {
  color: #788394;
}

.dashboard-lesson-map li.is-locked span {
  color: #788394;
  border-color: #aeb6c2;
}

.dashboard-lesson-map li.is-locked b {
  gap: 3px;
  font-size: .84rem;
  display: grid;
}

.dashboard-lesson-map li.is-locked small {
  color: #8993a1;
  font-size: .58rem;
  font-weight: 400;
}

.dashboard-curriculum-link {
  border-bottom: 2px solid var(--cobalt);
  color: var(--cobalt-deep);
  margin-top: 24px;
  padding: 8px 0;
  font-weight: 700;
  display: inline-block;
}

.review-strip {
  background: var(--ink);
  color: var(--white);
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(24px, 6vw, 92px);
  display: grid;
}

.review-strip > div {
  border-right: 1px solid #39424b;
  padding: 30px 28px;
}

.review-strip > div:last-child {
  border: 0;
}

.review-strip strong {
  color: var(--saffron);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  display: block;
}

.review-strip span {
  color: var(--ink-tint);
  font-size: .72rem;
}

.dashboard-book-map {
  background: var(--white);
  max-width: 1480px;
  margin: 0 auto;
  padding: 54px clamp(24px, 5vw, 72px) 64px;
}

.dashboard-book-map > header {
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  display: flex;
}

.dashboard-book-map h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.dashboard-book-map header p {
  color: #526077;
  margin: 10px 0 0;
  font-size: .78rem;
}

.dashboard-book-map header > a {
  border-bottom: 2px solid var(--cobalt);
  color: var(--cobalt-deep);
  flex: none;
  padding: 10px 0;
  font-weight: 700;
}

.dashboard-book-map ol {
  border-bottom: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.dashboard-book-map li {
  border-right: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  min-width: 0;
}

.dashboard-book-map li a {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  display: grid;
}

.dashboard-book-map li > div {
  color: #8c96a5;
  cursor: not-allowed;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  display: grid;
}

.dashboard-book-map li.is-locked .unit-completion-gauge {
  background: #c6ccd6;
  padding: 1px;
}

.dashboard-book-map li.is-locked .unit-completion-gauge > span {
  background: var(--white);
  color: #788394;
  width: 34px;
  height: 34px;
}

.dashboard-book-map li a:hover {
  background: #eef2ff;
}

.dashboard-book-map li.is-current a {
  background: var(--cobalt);
  color: var(--white);
}

.unit-completion-gauge {
  --completion-angle: 0deg;
  background: conic-gradient(var(--cobalt) 0 var(--completion-angle), var(--line-light) var(--completion-angle) 360deg);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  padding: 2px;
  display: flex;
}

.unit-completion-gauge > span {
  background: var(--white);
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-weight: 700;
  display: flex;
}

.dashboard-book-map li.is-empty .unit-completion-gauge {
  background: var(--cobalt);
  padding: 1px;
}

.dashboard-book-map li.is-empty .unit-completion-gauge > span {
  width: 34px;
  height: 34px;
}

.dashboard-book-map li.is-current .unit-completion-gauge {
  background: conic-gradient(var(--saffron) 0 var(--completion-angle), #ffffff4d var(--completion-angle) 360deg);
}

.dashboard-book-map li.is-current .unit-completion-gauge > span {
  background: var(--cobalt);
  color: var(--white);
}

.dashboard-book-map li.is-current.is-empty .unit-completion-gauge {
  background: #ffffff8c;
}

.dashboard-book-map li.is-complete .unit-completion-gauge, .dashboard-book-map li.is-current.is-complete .unit-completion-gauge {
  background: #2d722b;
}

.dashboard-book-map li.is-complete .unit-completion-gauge > span, .dashboard-book-map li.is-current.is-complete .unit-completion-gauge > span {
  color: var(--white);
  background: #2d722b;
}

.dashboard-book-map li strong {
  font-family: var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.15rem;
  overflow: hidden;
}

.dashboard-book-map li small {
  color: #526077;
  text-transform: uppercase;
  font-size: .62rem;
}

.dashboard-book-map li.is-current small {
  color: var(--cobalt-tint);
}

.dashboard-book-map li.is-complete small, .dashboard-book-map li.is-current.is-complete small {
  color: #2d722b;
  font-weight: 700;
}

.dashboard-book-map li.is-current.is-complete small {
  color: #e5f3df;
}

.dashboard-desk {
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) clamp(24px, 5vw, 72px);
  display: grid;
}

.due-review {
  border-right: 1px solid #abb5c6;
  padding-right: clamp(28px, 5vw, 70px);
}

.attempt-history {
  padding-left: clamp(28px, 5vw, 70px);
}

.dashboard-desk header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  display: flex;
}

.dashboard-desk h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 3rem;
  font-weight: 600;
}

.dashboard-desk header p {
  color: #526077;
  max-width: 58ch;
  margin: 10px 0 0;
  font-size: .78rem;
  line-height: 1.5;
}

.dashboard-desk header a {
  border-bottom: 2px solid var(--cobalt);
  color: var(--cobalt-deep);
  flex: none;
  padding: 10px 0;
  font-weight: 700;
}

.due-review ol, .attempt-history ol {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.due-review li {
  border-top: 1px solid var(--line-light);
  grid-template-columns: minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  display: grid;
}

.due-review li span {
  color: var(--cobalt);
  text-transform: uppercase;
  font-size: .66rem;
  font-weight: 700;
  display: block;
}

.due-review li strong {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  line-height: 1.45;
  display: block;
}

.due-review li small, .due-review li p {
  color: #526077;
  margin: 0;
  font-size: .7rem;
}

.due-review li > a {
  background: var(--cobalt);
  color: var(--white);
  padding: 13px 15px;
  font-size: .72rem;
  font-weight: 700;
}

.attempt-history li {
  border-top: 1px solid var(--line-light);
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  display: grid;
}

.attempt-history li > span {
  color: #8c2015;
  text-transform: uppercase;
  font-size: .64rem;
  font-weight: 700;
}

.attempt-history li > span.is-correct {
  color: var(--cobalt-deep);
}

.attempt-history li strong {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
}

.attempt-history li p {
  color: #526077;
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: .73rem;
}

.attempt-history li > small {
  color: #526077;
  text-align: right;
  font-size: .64rem;
}

.dashboard-empty {
  border-top: 1px solid var(--line-light);
  margin-top: 28px;
  padding: 34px 0;
}

.dashboard-empty h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2rem;
}

.dashboard-empty p {
  color: #526077;
  max-width: 48ch;
  margin: 12px 0 0;
  line-height: 1.55;
}

.dashboard-empty a {
  color: var(--cobalt-deep);
  margin-top: 18px;
  font-weight: 700;
  display: inline-block;
}

.dashboard-error {
  color: var(--white);
  background: #8c2015;
  margin: 0;
  padding: 18px clamp(24px, 6vw, 92px);
}

.dashboard-mobile-home {
  display: none;
}

@media (max-width: 920px) {
  .account-stage, .pricing-intro, .pricing-workbench, .dashboard-course-position, .dashboard-desk, .legal-hero {
    grid-template-columns: 1fr;
  }

  .account-promise {
    min-height: 620px;
  }

  .login-panel {
    margin: 48px 24px;
  }

  .pricing-intro > p {
    max-width: 540px;
  }

  .pricing-includes {
    border-bottom: 1px solid #aeb7c8;
    border-right: 0;
    padding: 0 0 44px;
  }

  .price-selector {
    padding: 44px 0 0;
  }

  .vocab-workbench {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .vocab-practice-field {
    padding-left: 34px;
    padding-right: 34px;
  }

  .vocab-ledger {
    grid-template-columns: 1fr;
  }

  .dashboard-level-field {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
  }

  .due-review {
    border-bottom: 1px solid #abb5c6;
    border-right: 0;
    padding: 0 0 52px;
  }

  .attempt-history {
    padding: 52px 0 0;
  }

  .legal-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    padding-left: 20px;
    padding-right: 20px;
  }

  .legal-document {
    padding-left: 42px;
    padding-right: 42px;
  }

  .legal-document > section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-header {
    height: auto;
    min-height: calc(62px + env(safe-area-inset-top));
    padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  }

  .app-header .wordmark {
    --wordmark-height: 25px;
  }

  .app-header nav {
    gap: 6px;
  }

  .app-header nav a, .app-header nav button {
    font-size: .7rem;
  }

  .app-header-pricing {
    display: none;
  }

  .app-header nav .app-header-signin {
    padding: 11px 12px;
  }

  .app-header nav .feedback-sound-toggle {
    width: 44px;
  }

  .account-stage {
    min-height: 0;
  }

  .account-stage-login {
    min-height: calc(var(--app-vh) - 62px - env(safe-area-inset-top));
    padding: 24px 16px 36px;
  }

  .account-promise {
    min-height: 560px;
    padding: 56px 24px;
  }

  .account-promise h1 {
    font-size: 4.35rem;
  }

  .login-panel {
    padding: 30px 22px;
  }

  .pricing-intro {
    gap: 42px;
    padding: 56px 24px;
  }

  .pricing-intro h1 {
    font-size: 4.2rem;
  }

  .price-selector article {
    flex-direction: column;
    align-items: stretch;
  }

  .price-selector button {
    width: 100%;
  }

  .embedded-checkout-shell > header {
    flex-direction: column;
    align-items: stretch;
  }

  .embedded-checkout-shell > header h3 {
    font-size: 1.7rem;
  }

  .plan-change-panel > div {
    flex-direction: column;
  }

  .unit-vocab-heading {
    flex-direction: column;
    align-items: stretch;
    padding: 50px 22px;
  }

  .unit-vocab-heading h1 {
    font-size: 4.2rem;
  }

  .unit-vocab-heading-actions {
    flex-direction: column;
  }

  .unit-vocab-heading-actions > a {
    justify-content: center;
  }

  .vocab-workbench {
    display: block;
  }

  .vocab-workbench > aside {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 22px;
    display: grid;
  }

  .vocab-workbench > aside > div, .vocab-workbench > aside > button {
    margin: 0;
  }

  .vocab-practice-field {
    padding: 36px 20px 56px;
  }

  .vocab-person-cue {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .vocab-person-pair img {
    height: auto;
  }

  .vocab-person-cue figcaption {
    padding: 18px 20px;
  }

  .vocab-focus-arabic {
    font-size: 4rem;
  }

  .vocab-choices {
    grid-template-columns: 1fr;
  }

  .vocab-speaking > div:first-child {
    flex-direction: column;
    align-items: flex-start;
  }

  .vocab-speaking > div:first-child > .audio-button-control {
    align-items: flex-start;
    margin-top: 16px;
  }

  .vocab-ledger button {
    grid-template-columns: 34px minmax(100px, .8fr) 1fr;
    gap: 12px;
    padding: 16px 18px;
  }

  .dashboard-command-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
  }

  .dashboard-command-bar h1 {
    font-size: 2.1rem;
  }

  .dashboard-account-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .dashboard-account-line > div {
    text-align: left;
    border-bottom: 1px solid #ffffff59;
    border-right: 0;
    width: 100%;
    padding: 0 0 10px;
  }

  .dashboard-account-line strong {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
  }

  .dashboard-billing {
    padding: 0 20px;
    display: block;
  }

  .dashboard-billing > div {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
    min-height: 0;
    padding: 26px 0;
  }

  .dashboard-billing > div:first-child, .dashboard-billing > div:nth-child(3) {
    padding-left: 0;
    padding-right: 0;
  }

  .dashboard-plan-change {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    display: flex !important;
  }

  .dashboard-plan-change > div:last-child {
    flex-basis: auto;
  }

  .dashboard-level-field, .dashboard-lesson-map {
    padding: 42px 20px;
  }

  .dashboard-level-field > div strong {
    font-size: 5.25rem;
  }

  .dashboard-level-field > a {
    width: 100%;
  }

  .dashboard-lesson-map > header {
    align-items: flex-start;
    display: block;
  }

  .dashboard-lesson-map header p {
    text-align: left;
    margin-top: 10px;
  }

  .dashboard-lesson-map ol {
    grid-template-columns: 1fr;
  }

  .dashboard-lesson-map li:nth-child(odd) {
    border-right: 0;
    margin-right: 0;
  }

  .review-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 18px;
  }

  .review-strip > div:nth-child(2) {
    border-right: 0;
  }

  .review-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid #39424b;
  }

  .dashboard-book-map {
    padding: 44px 20px 54px;
  }

  .dashboard-book-map > header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-book-map ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-book-map li a {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .dashboard-book-map li small {
    grid-column: 2;
  }

  .dashboard-desk {
    padding: 48px 20px;
  }

  .dashboard-desk header {
    flex-direction: column;
    align-items: flex-start;
  }

  .due-review li {
    grid-template-columns: 1fr auto;
    align-items: flex-start;
  }

  .due-review li > p {
    grid-column: 1;
  }

  .due-review li > a {
    grid-area: 1 / 2 / span 2;
  }

  .attempt-history li {
    grid-template-columns: 54px 1fr;
    align-items: flex-start;
  }

  .attempt-history li > small {
    text-align: left;
    grid-column: 2;
  }

  .legal-footer-brand {
    display: block;
  }

  .legal-footer-brand > p {
    margin-top: 18px;
  }

  .legal-hero {
    padding: 56px 22px;
  }

  .legal-hero h1 {
    font-size: 4.5rem;
  }

  .legal-layout {
    padding: 0;
    display: block;
  }

  .legal-rail {
    position: static;
  }

  .legal-rail nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .legal-document {
    padding: 0 22px 64px;
  }

  .legal-document > section {
    padding: 48px 0;
  }

  .legal-contact-panel {
    margin-top: 0;
  }
}

.reading-shell {
  background: var(--paper);
  min-height: var(--app-vh);
}

.reading-header {
  background: var(--cobalt-deep);
  color: var(--white);
  height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(clamp(22px, 4vw, 58px), env(safe-area-inset-right)) 0 max(clamp(22px, 4vw, 58px), env(safe-area-inset-left));
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.reading-header nav {
  align-items: center;
  gap: 30px;
  display: flex;
}

.reading-header nav a {
  border-bottom: 1px solid #0000;
  padding: 12px 0;
  font-size: .82rem;
  font-weight: 700;
}

.reading-header nav a:hover {
  border-color: var(--saffron);
}

.reading-command {
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: minmax(300px, 1.35fr) minmax(350px, 1fr) 135px;
  align-items: stretch;
  min-height: 142px;
  display: grid;
}

.reading-command > div {
  padding: 24px clamp(22px, 3vw, 46px);
}

.reading-command > div + div {
  border-left: 1px solid var(--line-light);
}

.reading-command span, .reading-role-rail > span, .reading-coach-rail > span, .reading-paragraph-coach > span, .reading-questions header > span, .reading-completion > span {
  color: var(--cobalt);
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
}

.reading-command h1 {
  font-family: var(--font-display);
  margin: 6px 0 8px;
  font-size: clamp(2.35rem, 3vw, 3.3rem);
  font-weight: 600;
  line-height: .95;
}

.reading-command p {
  color: #505963;
  margin: 0;
  font-size: .84rem;
}

.reading-mode-tabs {
  grid-template-columns: 1fr 1fr;
  display: grid;
  padding: 0 !important;
}

.reading-mode-tabs button {
  color: #555f69;
  cursor: pointer;
  font-family: var(--font-display);
  text-align: left;
  background: none;
  border: 0;
  min-height: 100%;
  padding: 24px;
  font-size: 1.55rem;
  font-weight: 600;
}

.reading-mode-tabs button + button {
  border-left: 1px solid var(--line-light);
}

.reading-mode-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

.reading-mode-tabs small {
  color: inherit;
  font-family: var(--font-ui);
  opacity: .75;
  margin-top: 6px;
  font-size: .67rem;
  font-weight: 400;
  display: block;
}

.reading-progress-mark {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.reading-progress-mark strong {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  font-size: 2.25rem;
}

.reading-progress-mark span {
  color: #636d77;
  font-family: var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  font-size: .63rem;
  font-weight: 400;
}

.reading-workspace {
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.8fr) minmax(260px, .8fr);
  min-height: 640px;
  display: grid;
}

.reading-role-rail, .reading-coach-rail {
  background: var(--white);
  padding: 34px clamp(22px, 2.4vw, 36px);
}

.reading-role-rail {
  border-right: 1px solid var(--line-light);
}

.reading-coach-rail {
  border-left: 1px solid #39424b;
}

.reading-role-rail h2, .reading-coach-rail h2, .reading-paragraph-coach h2 {
  font-family: var(--font-display);
  margin: 7px 0 12px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.reading-role-rail > p, .reading-coach-rail > p, .reading-paragraph-coach > p {
  color: #59636d;
  margin: 0 0 24px;
  font-size: .79rem;
  line-height: 1.55;
}

.reading-model-action, .reading-start-role {
  cursor: pointer;
  border: 0;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: .76rem;
  font-weight: 800;
}

.reading-model-action {
  background: var(--saffron);
  color: var(--ink);
}

.reading-start-role {
  background: var(--cobalt);
  color: var(--white);
  margin-top: 14px;
}

.reading-start-role:disabled, .reading-model-action:disabled {
  cursor: default;
  opacity: .45;
}

.reading-role-options {
  border-bottom: 1px solid var(--line-light);
  margin-top: 18px;
}

.reading-role-options button {
  border: 0;
  border-top: 1px solid var(--line-light);
  cursor: pointer;
  text-align: left;
  background: none;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 2px 10px;
  width: 100%;
  min-height: 64px;
  padding: 8px 4px;
  display: grid;
}

.reading-role-options button[data-selected="true"] {
  box-shadow: inset 4px 0 0 var(--cobalt);
  background: #edf1ff;
}

.reading-role-options button:disabled {
  cursor: default;
  opacity: .55;
}

.reading-role-options b {
  border: 1px solid var(--cobalt);
  color: var(--cobalt);
  border-radius: 50%;
  grid-row: 1 / span 2;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  display: flex;
}

.reading-role-options span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.reading-role-options small {
  color: #68727c;
  font-size: .68rem;
}

.reading-role-rail > small, .reading-coach-rail > small {
  color: #6c7680;
  margin-top: 10px;
  font-size: .67rem;
  line-height: 1.45;
  display: block;
}

.reading-script-stage {
  background: var(--ink);
  color: var(--white);
  padding: 32px clamp(22px, 3vw, 48px) 46px;
}

.reading-script-stage > header, .reading-paragraph-stage > header {
  border-bottom: 1px solid #39424b;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 15px;
  display: flex;
}

.reading-script-stage > header span, .reading-paragraph-stage > header span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
}

.reading-script-stage > header strong, .reading-paragraph-stage > header strong {
  color: var(--ink-tint);
  font-size: .7rem;
  font-weight: 400;
}

.reading-script-stage ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reading-script-stage li {
  border-bottom: 1px solid #39424b;
  grid-template-columns: 90px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 20px;
  min-height: 132px;
  padding: 20px 0;
  transition: background-color .22s ease-out, transform .22s ease-out;
  display: grid;
}

.reading-script-stage li[data-active="true"] {
  background: var(--ink-lift);
  padding-left: 18px;
  padding-right: 12px;
}

.reading-script-stage li > div:first-child {
  grid-template-columns: 24px 1fr;
  gap: 3px;
  display: grid;
}

.reading-script-stage li > div:first-child > span {
  border: 1px solid var(--saffron);
  color: var(--saffron);
  border-radius: 50%;
  grid-row: 1 / span 2;
  justify-content: center;
  align-items: center;
  width: 23px;
  height: 23px;
  display: flex;
}

.reading-script-stage li[data-speaker="b"] > div:first-child > span {
  color: #9eb1ff;
  border-color: #6f8cff;
}

.reading-script-stage li > div:first-child strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.reading-script-stage li > div:first-child small {
  color: var(--ink-tint);
  font-size: .6rem;
}

.reading-script-stage li > p {
  font-family: var(--font-arabic);
  text-align: right;
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.8;
}

.reading-script-stage .audio-button-control {
  align-items: center;
}

.reading-script-stage .lesson-audio-label {
  color: var(--ink-tint);
  text-align: center;
  font-size: .56rem;
}

.reading-script-stage details, .reading-paragraph-stage details {
  color: var(--ink-tint);
  border-top: 1px solid #39424b;
  padding: 18px 0 0;
  font-size: .74rem;
}

.reading-script-stage summary, .reading-paragraph-stage summary {
  color: var(--saffron);
  cursor: pointer;
  font-weight: 700;
}

.reading-script-stage details p {
  margin: 10px 0 0;
}

.reading-response-panel > span {
  color: var(--cobalt);
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 800;
}

.reading-response-panel > p {
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-arabic);
  margin: 8px 0 20px;
  padding-bottom: 14px;
  font-size: 1.7rem;
  line-height: 1.8;
}

.reading-response-panel .microphone-control, .reading-paragraph-coach .microphone-control {
  align-items: center;
  margin: 8px auto 24px;
}

.reading-response-panel form label, .reading-paragraph-coach form label {
  color: #64707a;
  margin-bottom: 7px;
  font-size: .68rem;
  display: block;
}

.reading-response-panel form > div {
  display: flex;
}

.reading-response-panel input, .reading-paragraph-coach textarea {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-arabic);
  border: 1px solid #98a2ad;
  border-radius: 0;
  width: 100%;
  min-width: 0;
  padding: 11px;
  font-size: 1.15rem;
}

.reading-response-panel form button, .reading-paragraph-coach form button {
  background: var(--cobalt);
  color: var(--white);
  cursor: pointer;
  border: 0;
  min-height: 46px;
  padding: 10px 14px;
  font-weight: 700;
}

.reading-response-panel form button:disabled, .reading-paragraph-coach form button:disabled {
  opacity: .45;
}

.reading-ai-turn {
  border-bottom: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  display: flex;
}

.reading-ai-turn i {
  background: var(--saffron);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  animation: .9s ease-in-out infinite alternate reading-pulse;
}

.reading-ai-turn p {
  color: #59636d;
  margin: 0;
  font-size: .76rem;
}

.reading-gentle-review {
  border-top: 2px solid var(--saffron);
  margin-top: 22px;
  padding-top: 17px;
}

.reading-gentle-review[data-strong="true"] {
  border-color: var(--success);
}

.reading-gentle-review strong {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.reading-gentle-review p {
  color: #515b65;
  font-size: .76rem;
  line-height: 1.5;
}

.reading-gentle-review button {
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  border: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-weight: 700;
}

.reading-mode-finished {
  border-top: 2px solid var(--success);
  margin-top: 24px;
  padding: 14px 0 8px;
}

.reading-mode-finished p {
  color: #59636d;
  margin: 5px 0 0;
  font-size: .76rem;
  line-height: 1.5;
}

.reading-error {
  color: #93271f !important;
  margin-top: 18px !important;
  font-size: .75rem !important;
}

.reading-paragraph-workspace {
  background: var(--ink);
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .72fr);
  min-height: 590px;
  display: grid;
}

.reading-paragraph-stage {
  color: var(--white);
  padding: 38px clamp(28px, 6vw, 96px) 58px;
}

.reading-paragraph-arabic {
  font-family: var(--font-arabic);
  text-align: center;
  max-width: 19ch;
  margin: 48px auto 36px;
  font-size: clamp(2rem, 3.25vw, 3.4rem);
  line-height: 2;
}

.reading-paragraph-audio {
  justify-content: center;
  display: flex;
}

.reading-paragraph-stage .lesson-audio-label {
  color: var(--ink-tint);
}

.reading-paragraph-coach {
  background: var(--white);
  border-left: 1px solid #39424b;
  padding: 38px clamp(24px, 3vw, 42px);
}

.reading-paragraph-coach textarea {
  resize: vertical;
  min-height: 116px;
  line-height: 1.7;
  display: block;
}

.reading-paragraph-coach form button {
  width: 100%;
  margin-top: 0;
}

.reading-questions {
  background: var(--white);
  padding: 48px clamp(24px, 7vw, 110px) 62px;
}

.reading-questions > header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
}

.reading-questions h2 {
  font-family: var(--font-display);
  margin: 5px 0 8px;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}

.reading-questions header p {
  color: #59636d;
  margin: 0;
  font-size: .78rem;
}

.reading-question-row {
  border: 0;
  border-bottom: 1px solid var(--line-light);
  margin: 0;
  padding: 24px 0 28px;
}

.reading-question-row legend {
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 4px 14px;
  width: 100%;
  padding: 0;
  display: grid;
}

.reading-question-row legend > span {
  border: 1px solid var(--cobalt);
  color: var(--cobalt);
  border-radius: 50%;
  grid-row: 1 / span 2;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  display: flex;
}

.reading-question-row legend strong {
  font-family: var(--font-arabic);
  font-size: 1.45rem;
  line-height: 1.65;
}

.reading-question-row legend small {
  color: #69737d;
}

.reading-answer-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0 48px;
  display: grid;
}

.reading-answer-options button {
  background: var(--paper);
  cursor: pointer;
  font-family: var(--font-arabic);
  border: 1px solid #aeb6c0;
  min-height: 52px;
  padding: 10px 14px;
  font-size: 1rem;
}

.reading-answer-options button[data-selected="true"] {
  border-color: var(--cobalt);
  box-shadow: inset 0 -3px 0 var(--cobalt);
}

.reading-answer-options button[data-correct="true"] {
  border-color: var(--success);
  box-shadow: inset 0 -3px 0 var(--success);
}

.reading-question-row > p {
  margin: 12px 0 0 48px;
  font-size: .72rem;
}

.reading-question-row > p.is-correct {
  color: var(--success);
}

.reading-question-row > p.is-gentle {
  color: #7b5910;
}

.reading-completion {
  background: var(--cobalt);
  color: var(--white);
  padding: 42px clamp(24px, 7vw, 110px) 48px;
}

.reading-completion[data-complete="true"] {
  background: var(--success);
}

.reading-completion > span {
  color: var(--saffron-pale);
}

.reading-completion h2 {
  font-family: var(--font-display);
  margin: 8px 0;
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1;
}

.reading-completion p {
  color: #ffffffbf;
  font-size: .8rem;
}

.reading-completion > div {
  gap: 12px;
  margin-top: 22px;
  display: flex;
}

.reading-completion a {
  border: 1px solid #fff9;
  min-height: 46px;
  padding: 14px 18px;
  font-size: .76rem;
  font-weight: 700;
}

.reading-completion a:first-child {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.reading-access-state {
  background: var(--ink);
  color: var(--white);
  min-height: var(--app-vh);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(40px, 8vw, 120px);
  display: flex;
}

.reading-access-state > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
}

.reading-access-state h1 {
  font-family: var(--font-display);
  max-width: 12ch;
  margin: 10px 0 18px;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: .9;
}

.reading-access-state p {
  color: var(--ink-tint);
  max-width: 48ch;
}

.reading-access-state a, .reading-access-state button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  margin-top: 18px;
  padding: 16px 22px;
  font-weight: 800;
}

@keyframes reading-pulse {
  to {
    opacity: .2;
    transform: scale(.7);
  }
}

@media (max-width: 980px) {
  .reading-command {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
  }

  .reading-progress-mark {
    display: none;
  }

  .reading-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .reading-coach-rail {
    border-left: 0;
    border-top: 1px solid var(--line-light);
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .reading-header {
    height: calc(60px + env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .reading-header .wordmark {
    --wordmark-height: 25px;
  }

  .reading-header nav {
    gap: 14px;
  }

  .reading-header nav a {
    align-items: center;
    min-height: 44px;
    font-size: .72rem;
    display: flex;
  }

  .reading-command {
    display: block;
  }

  .reading-command > div + div {
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .reading-command > div:first-child {
    padding: 22px 18px 20px;
  }

  .reading-command h1 {
    margin-top: 5px;
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: .98;
  }

  .reading-command p {
    font-size: .8rem;
    line-height: 1.45;
  }

  .reading-mode-tabs {
    min-height: 78px;
  }

  .reading-mode-tabs button {
    min-height: 78px;
    padding: 13px 18px;
    font-size: 1.28rem;
  }

  .reading-workspace {
    flex-direction: column;
    display: flex;
  }

  .reading-role-rail {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
    order: 1;
    padding: 26px 18px 30px;
  }

  .reading-role-rail h2, .reading-coach-rail h2, .reading-paragraph-coach h2 {
    font-size: 1.85rem;
  }

  .reading-role-rail > p, .reading-coach-rail > p, .reading-paragraph-coach > p {
    font-size: .82rem;
  }

  .reading-model-action, .reading-start-role {
    min-height: 52px;
  }

  .reading-script-stage {
    order: 2;
    padding: 26px 18px 34px;
  }

  .reading-coach-rail {
    padding: 28px 18px max(42px, env(safe-area-inset-bottom));
    order: 3;
  }

  .reading-role-options {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
  }

  .reading-role-options button {
    text-align: center;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 4px;
    min-height: 96px;
    padding: 10px 3px;
  }

  .reading-role-options button + button {
    border-left: 1px solid var(--line-light);
  }

  .reading-role-options button[data-selected="true"] {
    box-shadow: inset 0 -4px 0 var(--cobalt);
  }

  .reading-role-options b {
    grid-row: auto;
  }

  .reading-script-stage > header, .reading-paragraph-stage > header {
    align-items: flex-start;
    gap: 12px;
  }

  .reading-script-stage > header strong, .reading-paragraph-stage > header strong {
    text-align: right;
    max-width: 52%;
    line-height: 1.4;
  }

  .reading-script-stage li {
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-areas: "speaker audio"
                         "arabic arabic";
    align-items: center;
    gap: 16px 12px;
    min-height: 0;
    padding: 18px 0 22px;
  }

  .reading-script-stage li[data-active="true"] {
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .reading-script-stage li > div:first-child {
    grid-area: speaker;
  }

  .reading-script-stage li > p {
    grid-area: arabic;
    padding-top: 2px;
    font-size: clamp(1.55rem, 7.4vw, 2rem);
    line-height: 1.85;
  }

  .reading-script-stage li > .audio-button-control {
    grid-area: audio;
    justify-self: end;
    width: 72px;
    min-width: 0;
  }

  .reading-script-stage .lesson-audio-button {
    width: 56px;
    height: 56px;
  }

  .reading-script-stage .lesson-audio-face {
    width: 46px;
    height: 46px;
  }

  .reading-script-stage .lesson-audio-face svg {
    width: 27px;
    height: 23px;
  }

  .reading-script-stage .lesson-audio-label {
    white-space: nowrap;
    width: 72px;
    max-width: none;
    min-height: 1.15em;
    margin-top: 5px;
    font-size: .56rem;
    line-height: 1.15;
  }

  .reading-response-panel > p {
    font-size: 1.55rem;
  }

  .reading-response-panel {
    scroll-margin-top: 18px;
  }

  .reading-response-panel form > div {
    flex-direction: column;
    gap: 8px;
  }

  .reading-response-panel input {
    min-height: 54px;
  }

  .reading-response-panel form button, .reading-paragraph-coach form button {
    width: 100%;
    min-height: 52px;
  }

  .reading-paragraph-workspace {
    flex-direction: column;
    display: flex;
  }

  .reading-paragraph-stage {
    padding: 28px 18px 38px;
  }

  .reading-paragraph-arabic {
    max-width: 17ch;
    margin: 30px auto;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.95;
  }

  .reading-paragraph-stage .audio-button-control {
    width: 92px;
    min-width: 0;
  }

  .reading-paragraph-stage .lesson-audio-button {
    width: 64px;
    height: 64px;
  }

  .reading-paragraph-stage .lesson-audio-face {
    width: 52px;
    height: 52px;
  }

  .reading-paragraph-stage .lesson-audio-face svg {
    width: 30px;
    height: 25px;
  }

  .reading-paragraph-stage .lesson-audio-label {
    white-space: nowrap;
    min-height: 1.15em;
    margin-top: 6px;
    line-height: 1.15;
  }

  .reading-paragraph-coach {
    padding: 30px 18px max(44px, env(safe-area-inset-bottom));
    border-top: 1px solid #39424b;
    border-left: 0;
  }

  .reading-paragraph-coach textarea {
    min-height: 132px;
    font-size: 1.1rem;
  }

  .reading-questions {
    padding: 36px 18px 46px;
  }

  .reading-questions h2 {
    font-size: 2.25rem;
  }

  .reading-question-row {
    padding: 22px 0 26px;
  }

  .reading-question-row legend {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 5px 10px;
  }

  .reading-question-row legend strong {
    overflow-wrap: anywhere;
    font-size: 1.3rem;
  }

  .reading-answer-options {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .reading-answer-options button {
    min-height: 56px;
    font-size: 1.08rem;
  }

  .reading-question-row > p {
    margin-left: 0;
  }

  .reading-completion {
    padding: 34px 18px max(46px, env(safe-area-inset-bottom));
  }

  .reading-completion h2 {
    font-size: 2.25rem;
  }

  .reading-completion > div {
    flex-direction: column;
  }

  .reading-completion a {
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    display: flex;
  }
}

@media (max-width: 380px) {
  .reading-header {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .reading-header .wordmark {
    --wordmark-height: 23px;
  }

  .reading-header nav {
    gap: 10px;
  }

  .reading-header nav a {
    font-size: .68rem;
  }

  .reading-role-options span {
    font-size: 1rem;
  }

  .reading-role-options small {
    font-size: .62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-script-stage li {
    transition: none;
  }

  .reading-ai-turn i {
    animation: none;
  }
}

@media print {
  .app-header, .legal-footer, .legal-rail, .pwa-install {
    display: none !important;
  }

  .legal-hero {
    color: #000;
    background: none;
    padding: 0 0 28px;
    display: block;
  }

  .legal-hero h1 {
    color: #000;
    font-size: 42pt;
  }

  .legal-hero > div > p, .legal-hero dt {
    color: #333;
  }

  .legal-hero dl {
    border-color: #bbb;
    margin-top: 24px;
  }

  .legal-layout {
    max-width: none;
    padding: 0;
    display: block;
  }

  .legal-document {
    padding: 0;
  }

  .legal-document > section {
    break-inside: avoid;
    grid-template-columns: 170px 1fr;
    padding: 24px 0;
  }

  .legal-contact-panel {
    color: #000;
    background: none;
    border: 1px solid #999;
  }

  .legal-contact-panel h2 {
    color: #000;
  }
}

.pwa-install {
  background: var(--ink);
  border: 1px solid var(--saffron);
  bottom: max(18px, env(safe-area-inset-bottom));
  color: var(--white);
  z-index: 120;
  border-top-width: 4px;
  gap: 18px;
  width: calc(100% - 36px);
  max-width: 820px;
  padding: 22px;
  animation: .42s cubic-bezier(.16, 1, .3, 1) both pwa-install-enter;
  display: grid;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 24px 70px #00000061;
}

.pwa-install-close {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #59636d;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  position: absolute;
  top: 16px;
  right: 16px;
}

.pwa-install-intro {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding-right: 42px;
  display: grid;
}

.pwa-install-brand {
  background: var(--cobalt);
  justify-content: center;
  align-items: center;
  height: 72px;
  padding: 16px;
  display: flex;
}

.pwa-install-brand svg {
  max-width: 100%;
  height: auto;
}

.pwa-install-intro > div:last-child > span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .08em;
  margin-bottom: 4px;
  font-size: .7rem;
  font-weight: 800;
  display: block;
}

.pwa-install-intro > div:last-child > strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.05;
  display: block;
}

.pwa-install-intro p {
  color: var(--ink-tint);
  margin: 6px 0 0;
  font-size: .78rem;
  line-height: 1.45;
}

.pwa-install-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.pwa-install-steps li {
  border: 1px solid #38434d;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  display: grid;
}

.pwa-install-steps svg {
  fill: none;
  height: 26px;
  stroke: var(--saffron);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7px;
  width: 26px;
}

.pwa-install-steps strong, .pwa-install-steps small {
  display: block;
}

.pwa-install-steps strong {
  font-size: .72rem;
}

.pwa-install-steps small {
  color: var(--ink-tint);
  margin-top: 2px;
  font-size: .62rem;
  line-height: 1.3;
}

.pwa-install-benefits {
  color: var(--ink-tint);
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: .7rem;
  display: flex;
}

.pwa-install-benefits span:before {
  color: var(--saffron);
  content: "✓";
  margin-right: 7px;
  font-weight: 900;
}

.pwa-install-actions {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.pwa-install-actions button {
  background: var(--saffron);
  border: 1px solid var(--saffron);
  color: var(--ink);
  cursor: pointer;
  min-height: 46px;
  padding: 10px 18px;
  font-weight: 800;
}

.pwa-install-actions button.is-secondary {
  color: var(--white);
  background: none;
  border-color: #59636d;
}

.pwa-install button:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 4px;
}

@keyframes pwa-install-enter {
  from {
    opacity: 0;
    transform: translate(-50%, 18px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translate(-50%) scale(1);
  }
}

@media (max-width: 620px) {
  .pwa-install {
    bottom: calc(74px + env(safe-area-inset-bottom));
    gap: 15px;
    width: calc(100% - 20px);
    padding: 18px 16px 16px;
  }

  .pwa-install-close {
    width: 34px;
    height: 34px;
    top: 12px;
    right: 12px;
  }

  .pwa-install-intro {
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    padding-right: 28px;
  }

  .pwa-install-brand {
    height: 54px;
    padding: 11px;
  }

  .pwa-install-intro > div:last-child > strong {
    font-size: 1.35rem;
  }

  .pwa-install-intro p {
    font-size: .7rem;
  }

  .pwa-install-steps {
    gap: 7px;
  }

  .pwa-install-steps li {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 7px;
    padding: 10px 8px;
    display: grid;
  }

  .pwa-install-steps svg {
    width: 23px;
    height: 23px;
  }

  .pwa-install-steps strong {
    font-size: .66rem;
  }

  .pwa-install-steps small {
    font-size: .56rem;
  }

  .pwa-install-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .pwa-install-actions button:only-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install {
    animation: none;
  }
}

body:has(.admin-shell) {
  background: var(--theme-canvas);
}

body:has(.admin-shell) .legal-footer, body:has(.admin-shell) .pwa-install {
  display: none;
}

.admin-shell {
  background: var(--theme-canvas);
  color: var(--theme-text);
  min-height: 100vh;
}

.admin-masthead {
  background: var(--cobalt-deep);
  color: var(--white);
  z-index: 40;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 26px;
  display: grid;
  position: sticky;
  top: 0;
}

.admin-wordmark {
  --wordmark-height: 31px;
  width: fit-content;
  display: inline-flex;
}

.admin-masthead > span {
  font-family: var(--font-display);
  border-left: 1px solid #ffffff47;
  padding-left: 24px;
  font-size: 1.35rem;
  font-weight: 700;
}

.admin-masthead > div {
  align-items: center;
  gap: 10px;
  display: flex;
}

.admin-masthead small {
  color: var(--cobalt-tint);
  margin-right: 8px;
  font-size: .72rem;
}

.admin-masthead button, .admin-account-actions button, .admin-account-actions a, .admin-learning-map header a, .admin-error-state button, .admin-error-state a {
  color: inherit;
  cursor: pointer;
  font: inherit;
  background: none;
  border: 1px solid;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
}

.admin-masthead button:hover, .admin-masthead button:focus-visible {
  background: var(--white);
  color: var(--cobalt-deep);
}

.admin-masthead button:disabled {
  cursor: wait;
  opacity: .58;
}

.admin-health {
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text);
  grid-template-columns: minmax(190px, .8fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  padding: 0 26px;
  display: grid;
}

.admin-health > span {
  align-items: center;
  gap: 9px;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
}

.admin-health > span:before {
  content: "";
  border: 2px solid;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.admin-health > span.is-ok {
  color: var(--theme-success-text, var(--success));
}

.admin-health > span.is-warning {
  color: var(--theme-warning-text, #805a00);
}

.admin-health dl {
  justify-content: center;
  min-width: 0;
  margin: 0;
  display: flex;
}

.admin-health dl div {
  border-left: 1px solid var(--theme-border);
  align-items: baseline;
  gap: 8px;
  padding: 0 clamp(12px, 2vw, 30px);
  display: flex;
}

.admin-health dt {
  color: var(--theme-muted);
  font-size: .68rem;
}

.admin-health dd {
  color: var(--theme-link, var(--cobalt-deep));
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-health time {
  color: var(--theme-muted);
  font-size: .68rem;
}

.admin-frame {
  grid-template-columns: 88px 330px minmax(0, 1fr);
  min-height: calc(100vh - 122px);
  display: grid;
}

.admin-section-rail {
  background: var(--ink);
  border-right: 1px solid #2f3942;
  flex-direction: column;
  display: flex;
}

.admin-section-rail a {
  color: var(--ink-tint);
  font-family: var(--font-display);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 86px;
  padding: 10px 4px;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
}

.admin-section-rail a span {
  border: 1px solid #56616b;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .63rem;
  display: flex;
}

.admin-section-rail a:hover, .admin-section-rail a:focus-visible, .admin-section-rail a[aria-current="page"] {
  background: var(--cobalt);
  color: var(--white);
}

.admin-section-rail a[aria-current="page"] span {
  border-color: var(--saffron);
  color: var(--saffron);
}

.admin-work-queue {
  background: var(--theme-surface);
  border-right: 1px solid var(--theme-border);
  color: var(--theme-text);
  min-width: 0;
}

.admin-work-queue > header {
  border-bottom: 1px solid var(--theme-border);
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 24px 20px 18px;
  display: grid;
}

.admin-work-queue > header h1 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.45rem;
}

.admin-work-queue > header strong {
  color: var(--theme-link, var(--cobalt-deep));
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.admin-work-queue > header small {
  color: var(--theme-muted);
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: .65rem;
}

.admin-queue-group {
  border-bottom: 1px solid var(--theme-border);
  padding: 16px 14px 18px;
}

.admin-queue-group > header {
  justify-content: space-between;
  align-items: center;
  padding: 0 6px 10px;
  display: flex;
}

.admin-queue-group h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.12rem;
}

.admin-queue-group > header strong {
  border: 1px solid;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: .66rem;
  display: flex;
}

.admin-queue-group.is-cobalt {
  color: var(--theme-link, var(--cobalt-deep));
}

.admin-queue-group.is-saffron {
  color: var(--theme-warning-text, #805a00);
}

.admin-queue-group.is-green {
  color: var(--theme-success-text, var(--success));
}

.admin-queue-group.is-ink {
  color: var(--theme-subtle, #3a4652);
}

.admin-queue-group p {
  color: var(--theme-muted);
  margin: 6px;
  font-size: .68rem;
  line-height: 1.45;
}

.admin-queue-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-queue-group li + li {
  border-top: 1px solid var(--theme-border);
}

.admin-queue-group li button {
  color: var(--theme-text);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 7px 6px;
  display: grid;
}

.admin-queue-group li button:hover, .admin-queue-group li button:focus-visible {
  background: var(--theme-surface-raised);
}

.admin-queue-group li button > span {
  border: 1px solid var(--theme-muted);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: .58rem;
  display: flex;
}

.admin-queue-group li button > strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: .69rem;
  overflow: hidden;
}

.admin-queue-group li button small {
  color: var(--theme-muted);
  text-overflow: ellipsis;
  margin-top: 2px;
  font-size: .58rem;
  font-weight: 400;
  display: block;
  overflow: hidden;
}

.admin-queue-group li time {
  color: var(--theme-muted);
  white-space: nowrap;
  font-size: .56rem;
}

.admin-workspace {
  background: var(--theme-surface);
  color: var(--theme-text);
  min-width: 0;
  scroll-margin-top: 72px;
}

.admin-account-header {
  border-bottom: 1px solid var(--theme-border);
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  padding: 22px 28px;
  display: grid;
}

.admin-avatar {
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
}

.admin-account-header h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.65rem;
}

.admin-account-header p {
  margin: 3px 0;
  font-size: .75rem;
}

.admin-account-header small {
  color: var(--theme-muted);
  font-size: .64rem;
}

.admin-account-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.admin-account-actions button, .admin-account-actions a {
  border-color: var(--theme-muted);
  color: var(--theme-text);
}

.admin-account-actions button:hover, .admin-account-actions a:hover {
  background: var(--theme-surface-raised);
  border-color: var(--cobalt);
}

.admin-account-actions .is-primary {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.admin-account-actions .is-danger {
  color: var(--theme-danger-text, #9a2119);
  border-color: #b9362c;
}

.admin-account-actions button:disabled {
  cursor: wait;
  opacity: .6;
}

.admin-account-facts {
  border-bottom: 1px solid var(--theme-border);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
}

.admin-account-facts > div {
  border-right: 1px solid var(--theme-border);
  min-height: 108px;
  padding: 20px 22px;
}

.admin-account-facts > div:last-child {
  border-right: 0;
}

.admin-account-facts span {
  color: var(--theme-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
  display: block;
}

.admin-account-facts strong {
  margin-top: 9px;
  font-size: .83rem;
  display: block;
}

.admin-account-facts small {
  color: var(--theme-muted);
  margin-top: 5px;
  font-size: .64rem;
  line-height: 1.4;
  display: block;
}

.admin-learning-map {
  border-bottom: 1px solid var(--theme-border);
  padding: 22px 28px 28px;
  scroll-margin-top: 72px;
}

.admin-learning-map > header, .admin-account-ledgers section > header {
  justify-content: space-between;
  align-items: end;
  display: flex;
}

.admin-learning-map h2, .admin-account-ledgers h2, .admin-registry h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.4rem;
}

.admin-learning-map header p {
  color: var(--theme-muted);
  margin: 4px 0 0;
  font-size: .68rem;
}

.admin-learning-map header a {
  border-color: var(--theme-muted);
  color: var(--theme-text);
}

.admin-learning-map ol {
  border-bottom: 1px solid var(--theme-border);
  border-left: 1px solid var(--theme-border);
  grid-template-columns: repeat(16, minmax(48px, 1fr));
  min-width: 800px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.admin-learning-map ol li {
  border-right: 1px solid var(--theme-border);
  border-top: 1px solid var(--theme-border);
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 82px;
  padding: 12px 4px 8px;
  display: flex;
}

.admin-learning-map ol li small {
  color: var(--theme-subtle, #7b8490);
  font-size: .55rem;
}

.admin-unit-gauge {
  --admin-gauge: 0deg;
  background: conic-gradient(var(--cobalt) 0 var(--admin-gauge), var(--theme-border) var(--admin-gauge) 360deg);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  padding: 2px;
  display: flex;
}

.admin-unit-gauge > span {
  background: var(--theme-surface-raised);
  color: var(--theme-text);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: .86rem;
  font-weight: 700;
  display: flex;
}

.admin-learning-map li.is-complete .admin-unit-gauge {
  background: var(--success);
}

.admin-learning-map li.is-complete .admin-unit-gauge > span {
  background: var(--success);
  color: var(--white);
}

.admin-learning-map li.is-complete small {
  color: var(--success);
  font-weight: 700;
}

.admin-learning-map {
  overflow-x: auto;
}

.admin-account-ledgers {
  grid-template-columns: 1fr 1.25fr;
  display: grid;
}

.admin-account-ledgers > section {
  min-height: 282px;
  padding: 24px 28px 30px;
  scroll-margin-top: 72px;
}

.admin-account-ledgers > section + section {
  border-left: 1px solid var(--theme-border);
}

.admin-account-ledgers section > header {
  border-bottom: 1px solid var(--theme-border);
  padding-bottom: 12px;
}

.admin-account-ledgers section > header span {
  color: var(--theme-muted);
  font-size: .65rem;
}

.admin-usage-list {
  margin: 0;
}

.admin-usage-list > div {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 13px 0;
  display: grid;
}

.admin-usage-list > div + div {
  border-top: 1px solid var(--theme-border);
}

.admin-usage-list dt {
  font-size: .72rem;
}

.admin-usage-list dd {
  color: var(--theme-link, var(--cobalt-deep));
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-usage-list small {
  color: var(--theme-muted);
  grid-column: 1 / -1;
  font-size: .6rem;
}

.admin-event-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-event-list li {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 13px 0;
  display: grid;
}

.admin-event-list li + li {
  border-top: 1px solid var(--theme-border);
}

.admin-event-list li > span {
  border: 2px solid var(--cobalt);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.admin-event-list li > span.is-success {
  border-color: var(--success);
}

.admin-event-list li > span.is-response {
  border-color: var(--saffron);
}

.admin-event-list strong {
  font-size: .7rem;
  display: block;
}

.admin-event-list small {
  color: var(--theme-muted);
  margin-top: 3px;
  font-size: .6rem;
  display: block;
}

.admin-event-list time {
  color: var(--theme-muted);
  white-space: nowrap;
  font-size: .58rem;
}

.admin-empty {
  color: var(--theme-muted);
  padding: 30px 0;
}

.admin-empty strong {
  color: var(--theme-text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
}

.admin-empty p {
  max-width: 52ch;
  font-size: .7rem;
  line-height: 1.5;
}

.admin-empty-workspace {
  min-height: 60vh;
  padding: 80px 40px;
}

.admin-race {
  background: var(--ink);
  border-top: 8px solid var(--saffron);
  color: var(--white);
  padding: 38px clamp(20px, 4vw, 60px) 48px;
  scroll-margin-top: 68px;
}

.admin-race-header {
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  display: flex;
}

.admin-race-header > div:first-child > span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .65rem;
  font-weight: 800;
}

.admin-race-header h2 {
  font-family: var(--font-display);
  margin: 7px 0 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: .95;
}

.admin-race-header p {
  color: var(--ink-tint);
  margin: 8px 0 0;
  font-size: .72rem;
  line-height: 1.5;
}

.admin-race-controls {
  border: 1px solid #5c6670;
  flex: none;
  display: flex;
}

.admin-race-controls button {
  color: var(--ink-tint);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  min-height: 42px;
  padding: 8px 14px;
  font-size: .66rem;
  font-weight: 800;
}

.admin-race-controls button + button {
  border-left: 1px solid #5c6670;
}

.admin-race-controls button:hover, .admin-race-controls button.is-active {
  background: var(--saffron);
  color: var(--ink);
}

.admin-race-context {
  color: var(--ink-tint);
  border-top: 1px solid #4b555f;
  border-bottom: 1px solid #4b555f;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  min-height: 42px;
  margin-top: 24px;
  padding: 8px 0;
  font-size: .58rem;
  display: flex;
}

.admin-race-context span {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.admin-race-context span:before {
  background: var(--success);
  content: "";
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.admin-race-context time {
  margin-left: auto;
}

.admin-race-stages {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  display: grid;
}

.admin-race-stage {
  border: 1px solid #4b555f;
  min-height: 196px;
  padding: 18px 20px;
}

.admin-race-stage + .admin-race-stage {
  border-left: 0;
}

.admin-race-stage header {
  align-items: center;
  gap: 10px;
  display: flex;
}

.admin-race-stage header span {
  border: 1px solid var(--saffron);
  color: var(--saffron);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
}

.admin-race-stage h3 {
  color: var(--ink-tint);
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
  font-size: .82rem;
}

.admin-race-stage > strong {
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: -.03em;
  margin-top: 24px;
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  font-weight: 600;
  line-height: .9;
  display: block;
}

.admin-race-stage p {
  color: var(--white);
  margin: 8px 0 0;
  font-size: .68rem;
}

.admin-race-stage > small {
  color: #aeb7c4;
  margin-top: 18px;
  font-size: .58rem;
  display: block;
}

.admin-race-empty, .admin-race-unavailable {
  color: var(--ink-tint);
  border: 1px solid #5c6670;
  margin-top: 20px;
  padding: 24px;
}

.admin-race-unavailable {
  border-color: #92741d;
}

.admin-race-empty strong, .admin-race-unavailable strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.admin-race-empty p, .admin-race-unavailable p {
  margin: 6px 0 0;
  font-size: .7rem;
  line-height: 1.5;
}

.admin-race-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 14px;
  margin-top: 14px;
  display: grid;
}

.admin-race-grid > section, .admin-race-sources {
  background: var(--white);
  color: var(--ink);
  min-width: 0;
  padding: 24px;
}

.admin-race-grid section > header, .admin-race-sources > header {
  border-bottom: 1px solid var(--line-light);
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding-bottom: 12px;
  display: flex;
}

.admin-race-grid h3, .admin-race-sources h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.3rem;
}

.admin-race-grid header p, .admin-race-sources header p {
  color: #657080;
  margin: 4px 0 0;
  font-size: .62rem;
  line-height: 1.4;
}

.admin-race-grid header > span, .admin-race-sources header > span {
  color: var(--cobalt-deep);
  font-size: .62rem;
  font-weight: 800;
}

.admin-race-funnel {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.admin-race-funnel li {
  border: 1px solid var(--line-light);
  min-height: 118px;
  padding: 12px;
  position: relative;
}

.admin-race-funnel li + li {
  border-left: 0;
}

.admin-race-funnel li > span {
  color: #8a94a2;
  font-family: var(--font-display);
  font-size: .58rem;
}

.admin-race-funnel li small {
  color: #657080;
  margin-top: 12px;
  font-size: .55rem;
  display: block;
}

.admin-race-funnel li strong {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  margin-top: 4px;
  font-size: 1.75rem;
  line-height: 1;
  display: block;
}

.admin-race-funnel li em {
  color: #657080;
  font-size: .52rem;
  font-style: normal;
  position: absolute;
  bottom: 9px;
  left: 12px;
}

.admin-race-guardrail {
  border: 1px solid var(--line-light);
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 14px;
  display: grid;
}

.admin-race-guardrail > span {
  color: var(--success);
  font-family: var(--font-display);
  border: 2px solid;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
}

.admin-race-guardrail.is-warning > span {
  color: #a36d00;
}

.admin-race-guardrail strong {
  font-size: .68rem;
}

.admin-race-guardrail p {
  color: #657080;
  margin: 3px 0 0;
  font-size: .58rem;
  line-height: 1.45;
}

.admin-race-legend {
  gap: 11px;
  display: flex;
}

.admin-race-legend span {
  color: #657080;
  align-items: center;
  gap: 5px;
  font-size: .55rem;
  display: inline-flex;
}

.admin-race-legend span:before {
  background: var(--cobalt);
  content: "";
  width: 8px;
  height: 8px;
}

.admin-race-legend span.is-practice:before {
  background: var(--saffron);
}

.admin-race-trend {
  --race-days: 7;
  grid-template-columns: repeat(var(--race-days), minmax(3px, 1fr));
  border-bottom: 1px solid #aeb7c4;
  align-items: end;
  gap: clamp(2px, .45vw, 7px);
  height: 148px;
  margin-top: 20px;
  padding: 0 2px;
  display: grid;
}

.admin-race-trend > span {
  justify-content: center;
  align-items: end;
  gap: 2px;
  height: 100%;
  display: flex;
}

.admin-race-trend i {
  background: var(--cobalt);
  width: min(7px, 42%);
  min-height: 0;
  display: block;
}

.admin-race-trend i.is-practice {
  background: var(--saffron);
}

.admin-race-trend-axis {
  color: #7b8490;
  justify-content: space-between;
  margin-top: 6px;
  font-size: .52rem;
  display: flex;
}

.admin-race-signal-list {
  grid-template-columns: 1fr 1fr;
  margin: 16px 0 0;
  display: grid;
}

.admin-race-signal-list > div {
  border-top: 1px solid var(--line-light);
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  display: flex;
}

.admin-race-signal-list > div:nth-child(odd) {
  padding-right: 14px;
}

.admin-race-signal-list > div:nth-child(2n) {
  border-left: 1px solid var(--line-light);
  padding-left: 14px;
}

.admin-race-signal-list dt {
  color: #657080;
  font-size: .56rem;
}

.admin-race-signal-list dd {
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  margin: 0;
  font-size: .78rem;
  font-weight: 800;
}

.admin-race-sources {
  margin-top: 14px;
}

.admin-race-table-wrap {
  border: 1px solid var(--line-light);
  margin-top: 16px;
  overflow-x: auto;
}

.admin-race-sources table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
}

.admin-race-sources th {
  background: var(--paper);
  color: #526077;
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
  padding: 10px 12px;
  font-size: .62rem;
}

.admin-race-sources td {
  border-top: 1px solid var(--line-light);
  padding: 11px 12px;
  font-size: .64rem;
}

.admin-race-sources td strong {
  display: block;
}

.admin-race-sources td small {
  color: #697483;
  margin-top: 2px;
  font-size: .54rem;
  display: block;
}

.admin-race-source-empty {
  color: #657080;
  padding: 26px 0 6px;
  font-size: .68rem;
}

.admin-registry {
  background: var(--theme-surface);
  border-top: 8px solid var(--cobalt);
  color: var(--theme-text);
  padding: 34px clamp(20px, 4vw, 60px) 70px;
  scroll-margin-top: 68px;
}

.admin-registry > header {
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  display: flex;
}

.admin-registry > header p {
  color: var(--theme-muted);
  margin: 6px 0 0;
  font-size: .72rem;
}

.admin-registry-controls {
  gap: 10px;
  display: flex;
}

.admin-registry-controls label {
  color: var(--theme-muted);
  text-transform: uppercase;
  gap: 5px;
  font-size: .58rem;
  display: grid;
}

.admin-registry-controls input, .admin-registry-controls select {
  background: var(--theme-surface-raised);
  border: 1px solid var(--theme-muted);
  color: var(--theme-text);
  font: inherit;
  border-radius: 0;
  min-height: 42px;
  padding: 8px 11px;
}

.admin-registry-controls input {
  min-width: 280px;
}

.admin-registry-count {
  color: var(--theme-muted);
  margin: 18px 0 8px;
  font-size: .64rem;
}

.admin-table-wrap {
  border: 1px solid var(--theme-border);
  overflow-x: auto;
}

.admin-registry table {
  border-collapse: collapse;
  width: 100%;
  min-width: 980px;
}

.admin-registry th {
  background: var(--theme-canvas);
  color: var(--theme-muted);
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
  padding: 11px 12px;
  font-size: .67rem;
}

.admin-registry td {
  border-top: 1px solid var(--theme-border);
  color: var(--theme-text);
  vertical-align: middle;
  padding: 10px 12px;
  font-size: .67rem;
}

.admin-registry tr.is-selected td {
  background: var(--theme-surface-raised);
}

.admin-registry tr.is-selected td:first-child {
  box-shadow: inset 0 1px var(--saffron), inset 0 -1px var(--saffron);
}

.admin-registry-value {
  align-items: start;
  gap: 3px;
  display: grid;
}

.admin-registry-value strong {
  line-height: 1.2;
}

.admin-registry-value small {
  color: var(--theme-muted);
  font-size: .58rem;
  line-height: 1.3;
}

.admin-user-select {
  color: var(--theme-text);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  align-items: center;
  gap: 10px;
  padding: 0;
  display: flex;
}

.admin-user-select > span {
  background: var(--cobalt);
  color: var(--white);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: .56rem;
  display: flex;
}

.admin-user-select > strong {
  font-size: .68rem;
}

.admin-user-select small {
  color: var(--theme-muted);
  margin-top: 2px;
  font-size: .58rem;
  font-weight: 400;
  display: block;
}

.admin-access-badge {
  border: 1px solid var(--theme-muted);
  color: var(--theme-text);
  padding: 5px 7px;
  font-size: .58rem;
  font-weight: 700;
  display: inline-flex;
}

.admin-access-badge.is-global_admin, .admin-access-badge.is-subscription {
  border-color: var(--theme-link, var(--cobalt));
  color: var(--theme-link, var(--cobalt-deep));
}

.admin-access-badge.is-complimentary {
  border-color: var(--theme-success-text, var(--success));
  color: var(--theme-success-text, var(--success));
}

.admin-registry td:last-child button {
  border: 1px solid var(--theme-muted);
  color: var(--theme-text);
  cursor: pointer;
  background: none;
  min-height: 34px;
  padding: 7px 10px;
  font-size: .61rem;
  font-weight: 700;
}

.admin-registry td:last-child button:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.admin-toast {
  background: var(--ink);
  border-top: 3px solid var(--saffron);
  color: var(--white);
  z-index: 80;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: calc(100% - 36px);
  max-width: 620px;
  padding: 14px 18px;
  display: flex;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.admin-toast p {
  margin: 0;
  font-size: .72rem;
}

.admin-toast button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  min-height: 36px;
  padding: 8px 12px;
  font-size: .65rem;
  font-weight: 800;
}

.admin-loading, .admin-error-state {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  padding: 40px;
  display: grid;
}

.admin-loading-mark {
  border: 3px solid #4b555f;
  border-top-color: var(--saffron);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  animation: .8s linear infinite admin-spin;
}

.admin-loading h1, .admin-error-state h1 {
  font-family: var(--font-display);
  margin: 22px 0 0;
  font-size: 2.6rem;
}

.admin-loading p, .admin-error-state p {
  color: var(--ink-tint);
  max-width: 52ch;
  font-size: .8rem;
  line-height: 1.5;
}

.admin-error-state > div {
  gap: 10px;
  display: flex;
}

.admin-error-state button {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.admin-error-state a {
  color: var(--white);
}

@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-shell button:focus-visible, .admin-shell a:focus-visible, .admin-shell input:focus-visible, .admin-shell select:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.dashboard-admin-link {
  color: var(--white);
  white-space: nowrap;
  border: 1px solid #ffffff94;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  font-size: .66rem;
  font-weight: 800;
  display: inline-flex;
}

.dashboard-admin-link:hover {
  background: var(--white);
  color: var(--cobalt-deep);
}

@media (max-width: 1180px) {
  .admin-frame {
    grid-template-columns: 74px 280px minmax(0, 1fr);
  }

  .admin-account-header {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .admin-account-actions {
    grid-column: 1 / -1;
  }

  .admin-account-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-account-facts > div:nth-child(2) {
    border-right: 0;
  }

  .admin-account-facts > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line-light);
  }

  .admin-health {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-health time {
    display: none;
  }

  .admin-race-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-race-stage:nth-child(3) {
    border-left: 1px solid #4b555f;
  }

  .admin-race-stage:nth-child(n+3) {
    border-top: 0;
  }

  .admin-race-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-masthead {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .admin-masthead > span, .admin-health dl div:nth-child(4), .admin-health dl div:nth-child(5) {
    display: none;
  }

  .admin-frame {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .admin-section-rail {
    grid-row: 1 / span 2;
  }

  .admin-work-queue {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .admin-work-queue > header {
    grid-column: 1 / -1;
  }

  .admin-queue-group:nth-of-type(odd) {
    border-right: 1px solid var(--line-light);
  }

  .admin-account-ledgers {
    grid-template-columns: 1fr;
  }

  .admin-account-ledgers > section + section {
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .admin-race-funnel {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
  }

  .admin-registry > header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .admin-masthead {
    min-height: calc(62px + env(safe-area-inset-top));
    padding: max(9px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 9px max(14px, env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .admin-wordmark {
    --wordmark-height: 25px;
  }

  .admin-masthead small, .admin-masthead button:first-of-type {
    display: none;
  }

  .admin-masthead button {
    min-height: 42px;
  }

  .admin-health {
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    overflow-x: auto;
  }

  .admin-health > span, .admin-health dl {
    flex: none;
  }

  .admin-health dl div {
    padding: 0 10px;
  }

  .admin-health dl div:nth-child(n+3) {
    display: none;
  }

  .admin-frame {
    display: block;
  }

  .admin-section-rail {
    top: calc(62px + env(safe-area-inset-top));
    z-index: 30;
    border-bottom: 1px solid #2f3942;
    grid-template-columns: repeat(9, minmax(66px, 1fr));
    display: grid;
    position: sticky;
    overflow-x: auto;
  }

  .admin-section-rail a {
    min-height: 62px;
  }

  .admin-section-rail a span {
    display: none;
  }

  .admin-work-queue {
    display: block;
  }

  .admin-work-queue > header {
    padding: 20px 18px 15px;
  }

  .admin-queue-group {
    padding-left: 12px;
    padding-right: 12px;
  }

  .admin-queue-group:nth-of-type(odd) {
    border-right: 0;
  }

  .admin-account-header {
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    padding: 20px 18px;
    scroll-margin-top: 128px;
  }

  .admin-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .admin-account-header h2 {
    font-size: 1.45rem;
  }

  .admin-account-header p {
    overflow-wrap: anywhere;
  }

  .admin-account-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    display: grid;
  }

  .admin-account-actions .is-primary, .admin-account-actions .is-danger {
    grid-column: 1 / -1;
  }

  .admin-account-facts {
    grid-template-columns: 1fr 1fr;
  }

  .admin-account-facts > div {
    min-height: 104px;
    padding: 17px 14px;
  }

  .admin-learning-map {
    padding: 22px 18px 26px;
    scroll-margin-top: 128px;
  }

  .admin-learning-map > header {
    align-items: flex-start;
    gap: 12px;
  }

  .admin-learning-map header a {
    flex: none;
    min-height: 42px;
  }

  .admin-learning-map ol {
    grid-template-columns: repeat(16, 54px);
    min-width: 864px;
  }

  .admin-account-ledgers > section {
    min-height: 0;
    padding: 24px 18px 28px;
    scroll-margin-top: 128px;
  }

  .admin-race {
    padding: 28px 18px 36px;
    scroll-margin-top: 128px;
  }

  .admin-race-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-race-controls {
    width: fit-content;
  }

  .admin-race-context {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .admin-race-context time {
    margin-left: 0;
  }

  .admin-race-stages {
    grid-template-columns: 1fr 1fr;
  }

  .admin-race-stage {
    min-height: 174px;
    padding: 15px;
  }

  .admin-race-stage > strong {
    font-size: 2.25rem;
  }

  .admin-race-grid > section, .admin-race-sources {
    padding: 18px;
  }

  .admin-race-grid section > header, .admin-race-sources > header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-race-signal-list {
    grid-template-columns: 1fr;
  }

  .admin-race-signal-list > div:nth-child(odd) {
    padding-right: 0;
  }

  .admin-race-signal-list > div:nth-child(2n) {
    border-left: 0;
    padding-left: 0;
  }

  .admin-registry {
    padding: 28px 18px 52px;
    scroll-margin-top: 128px;
  }

  .admin-registry-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .admin-registry-controls label, .admin-registry-controls input, .admin-registry-controls select {
    width: 100%;
  }

  .admin-registry-controls input {
    min-width: 0;
  }

  .admin-table-wrap {
    border: 0;
    overflow: visible;
  }

  .admin-registry table, .admin-registry thead, .admin-registry tbody, .admin-registry tr, .admin-registry td {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .admin-registry thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }

  .admin-registry tr {
    border: 1px solid var(--theme-border);
    margin-bottom: 12px;
    padding: 12px 14px;
  }

  .admin-registry tr.is-selected {
    border-color: var(--cobalt);
  }

  .admin-registry tr.is-selected td {
    background: none;
  }

  .admin-registry td {
    border-top: 0;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    display: flex;
  }

  .admin-registry td:first-child {
    border-bottom: 1px solid var(--theme-border);
    margin-bottom: 4px;
    padding-bottom: 12px;
    display: block;
  }

  .admin-registry td:before {
    color: var(--theme-muted);
    content: attr(data-label);
    text-transform: uppercase;
    font-size: .58rem;
  }

  .admin-registry td:first-child:before, .admin-registry td:last-child:before {
    content: none;
  }

  .admin-registry-value {
    text-align: right;
    justify-items: end;
    max-width: 62%;
  }

  .admin-registry td:last-child button {
    width: 100%;
    min-height: 42px;
  }

  .admin-toast {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-loading-mark {
    animation: none;
  }
}

.unit-vocab-shell {
  overflow-x: hidden;
}

body:has(.unit-vocab-shell.is-immersive) {
  height: 100vh;
  overflow: hidden;
}

body:has(.unit-vocab-shell.is-immersive) > .legal-footer, body:has(.unit-vocab-shell.is-immersive) > .pwa-install {
  display: none;
}

.vocab-studio {
  background: radial-gradient(circle at 82% 8%, #ffbf191f, transparent 28%), var(--cobalt-deep);
  color: var(--white);
  min-height: calc(var(--app-vh) - 68px);
  padding: 26px clamp(20px, 4vw, 64px) 42px;
  overflow-x: hidden;
}

.unit-vocab-shell.is-immersive {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.vocab-studio.is-immersive {
  background: var(--ink);
  height: 100dvh;
  min-height: 0;
  padding: max(28px, env(safe-area-inset-top)) clamp(24px, 5vw, 64px) max(24px, env(safe-area-inset-bottom));
  transform-origin: top;
  z-index: 100;
  flex-direction: column;
  width: 100%;
  animation: .32s cubic-bezier(.16, 1, .3, 1) both flashcard-app-enter;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.vocab-session-header {
  color: var(--ink-tint);
  border-bottom: 1px solid #39434d;
  flex: none;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding-bottom: 18px;
  font-size: .72rem;
  display: grid;
}

.vocab-session-header .flashcard-exit {
  text-decoration: none;
}

.vocab-open-library {
  color: var(--ink-tint);
  cursor: pointer;
  background: none;
  border: 0;
  justify-self: start;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 700;
}

.vocab-open-library:hover {
  color: var(--saffron);
}

.vocab-open-library:disabled {
  cursor: wait;
  opacity: .58;
}

.vocabulary-app-source {
  color: var(--ink-tint);
  justify-self: start;
  padding: 8px 12px;
  font-weight: 700;
}

body:has(.vocabulary-app-shell) {
  height: 100vh;
  overflow: hidden;
}

body:has(.vocabulary-app-shell) > .legal-footer, body:has(.vocabulary-app-shell) > .pwa-install {
  display: none;
}

.vocabulary-app-shell {
  background: var(--ink);
  color: var(--white);
  height: 100dvh;
  min-height: 0;
  padding: max(28px, env(safe-area-inset-top)) clamp(24px, 5vw, 64px) max(24px, env(safe-area-inset-bottom));
  transform-origin: top;
  z-index: 100;
  flex-direction: column;
  width: 100%;
  animation: .32s cubic-bezier(.16, 1, .3, 1) both flashcard-app-enter;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.vocabulary-app-stage {
  outline: 0;
  flex: auto;
  min-height: 0;
  overflow: hidden;
}

.vocabulary-practice.is-immersive {
  grid-template-rows: minmax(220px, .9fr) minmax(260px, 1.1fr);
  height: 100%;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.vocabulary-app-word-face {
  text-align: center;
  border-bottom: 1px solid #39434d;
  align-content: center;
  justify-items: center;
  min-height: 0;
  padding: 18px clamp(20px, 5vw, 64px) 14px;
  display: grid;
}

.vocabulary-app-word-face .practice-arabic-focus {
  color: var(--white);
  margin: 0;
  font-size: clamp(3.5rem, 6vw, 6.2rem);
  line-height: 1.35;
}

.vocabulary-app-word-face .practice-transliteration {
  color: var(--ink-tint);
  margin: -3px 0 10px;
  font-size: .78rem;
}

.vocabulary-app-word-face .audio-button-control {
  min-width: 100px;
}

.vocabulary-app-word-face .lesson-audio-button {
  color: var(--saffron);
  width: 68px;
  height: 68px;
}

.vocabulary-app-word-face .lesson-audio-button:before {
  background: #ffbf191a;
  border-color: #ffbf1973;
}

.vocabulary-app-word-face .lesson-audio-face {
  border-color: var(--saffron);
  background: #151d24;
  width: 54px;
  height: 54px;
}

.vocabulary-app-word-face .lesson-audio-label {
  color: var(--saffron-pale);
  margin-top: 4px;
  font-size: .68rem;
}

.vocabulary-app-recall {
  align-content: center;
  gap: 28px;
  min-height: 0;
  padding: clamp(22px, 3vw, 36px) clamp(24px, 5vw, 64px);
  display: grid;
}

.vocabulary-app-recall span, .vocabulary-app-meaning > span {
  color: var(--saffron);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .61rem;
  font-weight: 800;
}

.vocabulary-app-recall h1 {
  font-family: var(--font-display);
  margin: 7px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
}

.vocabulary-review-response-deck.is-immersive {
  border: 0;
  align-content: center;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 14px clamp(24px, 5vw, 64px) 8px;
  overflow: hidden;
}

.vocabulary-app-meaning {
  text-align: center;
  border-bottom: 1px solid #39434d;
  justify-items: center;
  min-height: 90px;
  padding: 8px 12px 14px;
  display: grid;
}

.vocabulary-app-meaning strong {
  color: var(--saffron-pale);
  font-family: var(--font-display);
  margin-top: 3px;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  line-height: 1.05;
}

.vocabulary-review-response-deck.is-immersive .vocab-combined-response {
  gap: 8px;
  min-height: 0;
  padding: 10px 0 0;
}

.vocabulary-review-response-deck.is-immersive .vocab-skip-response {
  min-height: 38px;
}

.vocabulary-app-complete {
  text-align: center;
  outline: 0;
  flex: auto;
  align-content: center;
  justify-items: center;
  min-height: 0;
  padding: 28px 20px;
  display: grid;
}

.vocabulary-app-complete > span {
  border: 1px solid var(--success);
  color: var(--success);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 82px;
  height: 82px;
  font-size: 1rem;
  display: flex;
}

.vocabulary-app-complete h1 {
  font-family: var(--font-display);
  margin: 24px 0 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: .95;
}

.vocabulary-app-complete p {
  color: var(--ink-tint);
  margin: 14px 0 0;
}

.vocabulary-app-complete > div {
  gap: 10px;
  margin-top: 28px;
  display: flex;
}

.vocabulary-app-complete button, .vocabulary-app-complete a {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #5b6670;
  min-height: 48px;
  padding: 13px 18px;
  font-weight: 800;
}

.vocabulary-app-complete button {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.is-screen-reader-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.vocab-studio.is-immersive .vocab-study-layout {
  flex: auto;
  max-width: none;
  min-height: 0;
  display: block;
}

.vocab-studio.is-immersive .vocab-flashcard {
  border: 0;
  height: 100%;
  min-height: 0;
}

.vocab-studio.is-immersive .vocab-card-body {
  height: 100%;
}

.vocab-studio-header {
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
}

.vocab-studio-title > span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
}

.vocab-studio-title h1 {
  font-family: var(--font-display);
  letter-spacing: -.025em;
  margin: 7px 0 0;
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  font-weight: 600;
  line-height: .9;
}

.vocab-studio-title p {
  color: var(--cobalt-tint);
  max-width: 64ch;
  margin: 9px 0 0;
  font-size: .72rem;
  line-height: 1.45;
}

.vocab-studio-links {
  flex: none;
  align-items: stretch;
  gap: 8px;
  display: flex;
}

.vocab-studio-links > a, .vocab-studio-links > button {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #ffffff6b;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
}

.vocab-studio-links > button {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.vocab-studio-links > a:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.vocab-studio-links > button:hover {
  background: var(--saffron-pale);
}

.vocab-studio-links > button:disabled {
  cursor: wait;
  opacity: .58;
}

.vocab-studio-progress {
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 1420px;
  margin: 20px auto 12px;
  display: grid;
}

.vocab-studio-progress > div:first-child {
  align-items: baseline;
  gap: 5px;
  display: flex;
}

.vocab-studio-progress strong {
  color: var(--saffron);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.vocab-studio-progress span {
  color: var(--cobalt-tint);
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 700;
}

.vocab-progress-track {
  background: #ffffff2e;
  height: 3px;
  overflow: hidden;
}

.vocab-progress-track span {
  background: var(--saffron);
  transform-origin: 0;
  width: 100%;
  height: 100%;
  transition: transform .26s cubic-bezier(.16, 1, .3, 1);
  display: block;
}

.vocab-study-layout {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 1420px;
  margin: 0 auto;
  display: grid;
}

.vocab-card-rail {
  scrollbar-color: #ffffff47 transparent;
  align-content: start;
  gap: 6px;
  max-height: 632px;
  padding-right: 5px;
  display: grid;
  overflow-y: auto;
}

.vocab-card-rail button {
  color: var(--white);
  cursor: pointer;
  text-align: left;
  background: #ffffff12;
  border: 1px solid #ffffff21;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 5px 7px;
  display: grid;
}

.vocab-card-rail button > span {
  color: var(--cobalt-tint);
  border: 1px solid #fff6;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: .52rem;
  display: flex;
}

.vocab-card-rail button > strong {
  font-family: var(--font-arabic);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
  line-height: 1.3;
  overflow: hidden;
}

.vocab-card-rail button:hover {
  border-color: var(--saffron);
}

.vocab-card-rail button.is-current {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.vocab-card-rail button.is-current > span {
  border-color: var(--ink);
  color: var(--ink);
}

.vocab-card-rail button.is-reviewed:not(.is-current) > span {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.vocab-card-rail button:disabled {
  cursor: wait;
  opacity: .55;
}

.vocab-flashcard {
  background: var(--ink);
  box-shadow: none;
  color: var(--white);
  height: min(632px, calc(var(--app-vh) - 216px));
  border: 1px solid #3f4953;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 500px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.vocab-card-topline {
  border-bottom: 1px solid #39434d;
  flex: none;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 18px;
  display: grid;
}

.vocab-card-topline p {
  color: var(--ink-tint);
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  font-size: .62rem;
  font-weight: 700;
}

.vocab-card-topline button {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #5b6670;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 44px;
  padding: 8px 12px;
  font-size: .66rem;
  font-weight: 800;
  display: flex;
}

.vocab-card-topline button:last-child {
  justify-self: end;
}

.vocab-card-topline button:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.vocab-card-topline button:disabled {
  color: #737d86;
  cursor: not-allowed;
  border-color: #39434d;
}

.vocab-card-topline svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  width: 16px;
  height: 16px;
}

.vocab-card-body {
  flex: auto;
  grid-template-rows: minmax(230px, .9fr) minmax(250px, 1.1fr);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  display: grid;
  overflow-x: hidden;
}

.vocab-word-face {
  background: var(--ink);
  text-align: center;
  border-bottom: 1px solid #39434d;
  align-content: center;
  justify-items: center;
  min-height: 0;
  padding: 22px clamp(24px, 5vw, 64px);
  display: grid;
  position: relative;
}

.vocab-word-face:before {
  display: none;
}

.vocab-word-face > * {
  z-index: 1;
  position: relative;
}

.vocab-word-face .vocab-focus-arabic {
  color: var(--white);
  margin: 0;
  font-size: clamp(3.5rem, 6vw, 6.2rem);
  line-height: 1.35;
}

.vocab-word-face .vocab-transliteration {
  color: var(--ink-tint);
  margin: -3px 0 12px;
  font-size: .78rem;
}

.vocab-word-face .audio-button-control {
  min-width: 100px;
}

.vocab-word-face .lesson-audio-button {
  color: var(--saffron);
  width: 68px;
  height: 68px;
}

.vocab-word-face .lesson-audio-button:before {
  background: #ffbf191a;
  border-color: #ffbf1973;
}

.vocab-word-face .lesson-audio-face {
  border-color: var(--saffron);
  background: #151d24;
  width: 54px;
  height: 54px;
}

.vocab-word-face .lesson-audio-face svg {
  width: 27px;
  height: 22px;
}

.vocab-word-face .lesson-audio-label {
  color: var(--saffron-pale);
  margin-top: 4px;
  font-size: .68rem;
}

.vocab-classmate-chip {
  text-align: left;
  align-items: center;
  display: flex;
  position: absolute;
  top: 14px;
  left: 16px;
}

.vocab-classmate-chip > span {
  display: flex;
}

.vocab-classmate-chip img {
  object-fit: cover;
  border: 2px solid #4a5560;
  border-radius: 50%;
  width: 34px;
  height: 34px;
}

.vocab-classmate-chip img + img {
  margin-left: -9px;
}

.vocab-classmate-chip p {
  margin: 0 0 0 7px;
  display: grid;
}

.vocab-classmate-chip strong {
  color: var(--saffron-pale);
  text-transform: uppercase;
  font-size: .55rem;
}

.vocab-classmate-chip small {
  color: var(--ink-tint);
  font-size: .5rem;
}

.vocab-recall-panel, .vocab-response-deck {
  background: var(--ink);
  color: var(--white);
  align-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  padding: clamp(22px, 3vw, 36px) clamp(24px, 5vw, 64px);
  display: grid;
  overflow: hidden auto;
}

.vocab-recall-panel > div:first-child > span {
  color: var(--saffron);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .61rem;
  font-weight: 800;
}

.vocab-recall-panel h2, .vocab-response-deck h2 {
  font-family: var(--font-display);
  margin: 7px 0 0;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
}

.vocab-recall-panel .vocab-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-width: none;
  margin: 24px 0 0;
}

.vocab-recall-panel .vocab-choices button {
  border-radius: 0;
  min-height: 54px;
  padding: 10px 14px;
  font-size: .76rem;
}

.vocab-recall-panel .vocab-feedback {
  margin: 13px 0 0;
  font-size: .7rem;
}

.vocab-response-deck {
  align-content: center;
}

.vocab-translation-reveal {
  color: var(--saffron-pale);
  font-family: var(--font-display);
  text-align: center;
  border-bottom: 1px solid #3d4750;
  justify-content: center;
  align-items: center;
  min-height: 92px;
  margin: 0;
  padding: 12px 20px 18px;
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  font-weight: 600;
  line-height: 1.05;
  display: flex;
}

.vocab-model-line {
  border-bottom: 1px solid #3d4750;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 10px 0 16px;
  display: grid;
}

.vocab-model-line p {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.4;
}

.vocab-model-line > div > strong {
  color: var(--saffron-pale);
  margin-top: 3px;
  font-size: .7rem;
  display: block;
}

.vocab-model-line small {
  color: var(--ink-tint);
  margin-top: 2px;
  font-size: .65rem;
  display: block;
}

.vocab-model-line .audio-button-control {
  min-width: 86px;
}

.vocab-model-line .lesson-audio-button {
  width: 58px;
  height: 58px;
}

.vocab-model-line .lesson-audio-face {
  width: 46px;
  height: 46px;
}

.vocab-model-line .lesson-audio-face svg {
  width: 25px;
  height: 21px;
}

.vocab-model-line .lesson-audio-label {
  margin-top: 2px;
  font-size: .66rem;
}

.vocab-combined-response {
  grid-template-columns: 1fr;
  place-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 144px;
  padding: 14px 0 8px;
  display: grid;
}

.vocab-skip-response {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #69737d;
  justify-self: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: .66rem;
  font-weight: 800;
}

.vocab-skip-response:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.vocab-skip-response:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.vocab-voice-panel {
  place-items: center;
  width: 100%;
  min-height: 0;
  display: grid;
}

.vocab-voice-panel .microphone-control {
  min-width: 94px;
}

.vocab-voice-panel .lesson-mic {
  width: 68px;
  height: 68px;
}

.vocab-voice-panel .lesson-mic-face {
  width: 54px;
  height: 54px;
}

.vocab-voice-panel .lesson-mic-face svg {
  width: 24px;
  height: 24px;
}

.vocab-voice-panel .lesson-mic-label {
  margin-top: 3px;
  font-size: .68rem;
}

.vocab-type-panel {
  align-content: end;
  width: min(720px, 100%);
  min-width: 0;
  min-height: 72px;
  display: grid;
}

.vocab-type-panel label {
  color: var(--ink-tint);
  margin-bottom: 6px;
  font-size: .62rem;
}

.vocab-type-panel > div {
  min-height: 50px;
  display: flex;
}

.vocab-type-panel input {
  color: var(--white);
  font-family: var(--font-arabic);
  background: #161d24;
  border: 1px solid #4b555f;
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 1.05rem;
}

.vocab-type-panel button {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  padding: 0 18px;
  font-size: .7rem;
  font-weight: 800;
}

.vocab-type-panel button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.vocab-result-panel {
  border: 1px solid #53606b;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 142px;
  margin-top: 16px;
  padding: 16px;
  display: grid;
}

.vocab-result-panel.is-success {
  background: #2d722b2e;
  border-color: #659262;
}

.vocab-result-panel.is-review {
  background: #ffbf1914;
  border-color: #8e782f;
}

.vocab-result-score {
  border-right: 1px solid #53606b;
  align-items: baseline;
  padding-right: 14px;
  display: flex;
}

.vocab-result-score strong {
  color: var(--saffron);
  font-family: var(--font-display);
  font-size: 2.7rem;
  line-height: 1;
}

.vocab-result-score span {
  color: var(--ink-tint);
  font-size: .58rem;
}

.vocab-result-panel > div:nth-child(2) > span {
  color: var(--saffron-pale);
  font-size: .72rem;
  font-weight: 800;
}

.vocab-result-panel > div:nth-child(2) p {
  color: var(--ink-tint);
  margin: 5px 0;
  font-size: .62rem;
  line-height: 1.45;
}

.vocab-result-panel > div:nth-child(2) small {
  color: var(--white);
  font-family: var(--font-arabic);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .7rem;
  display: block;
  overflow: hidden;
}

.vocab-result-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.vocab-result-actions button {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #69737d;
  min-height: 38px;
  padding: 0 14px;
  font-size: .66rem;
  font-weight: 800;
}

.vocab-result-actions button.is-primary {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.vocab-response-deck .vocab-recording-note {
  color: #929ca6;
  border-top: 1px solid #3d4750;
  margin-top: 2px;
  padding-top: 8px;
  font-size: .55rem;
  line-height: 1.4;
}

.vocab-response-deck .vocab-recording-note strong {
  color: var(--saffron);
  font-size: inherit;
  margin: 0 7px 0 0;
  display: inline;
}

.vocab-response-deck .vocab-recording-note a {
  color: var(--saffron);
  font-size: inherit;
  margin: 0 0 0 5px;
  display: inline;
}

.vocabulary-review-response-deck {
  max-width: 860px;
  min-height: min(430px, calc(var(--app-vh) - 270px));
  border-top: 1px solid #3d4750;
  border-bottom: 1px solid #3d4750;
  margin: 28px auto 0;
  padding: clamp(22px, 3vw, 38px) 0 18px;
  overflow: visible;
}

.vocabulary-review-response-deck .vocab-model-line > div {
  min-width: 0;
}

.vocabulary-review-message {
  color: var(--ink-tint);
  margin: 4px 0 8px;
  font-size: .66rem;
}

.vocabulary-review-message p {
  margin: 0;
}

.vocabulary-review-message.is-error {
  color: #ffc2bb;
}

.vocabulary-review-message .lesson-signin-action {
  color: var(--saffron);
  margin-top: 5px;
  font-weight: 800;
  display: inline-block;
}

.vocab-flashcard > .vocab-save-message {
  color: var(--cobalt-tint);
  background: #202833;
  border-top: 1px solid #3c4753;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  min-height: 34px;
  margin: 0;
  padding: 6px 14px;
  font-size: .58rem;
  display: flex;
}

.vocab-flashcard > .vocab-save-message.is-error {
  color: #ffc2bb;
  background: #401d1a;
}

.vocab-flashcard > .vocab-save-message a {
  color: var(--saffron);
  font-weight: 800;
}

.vocab-library-overlay {
  z-index: 110;
  position: fixed;
  inset: 0;
}

.vocab-library-backdrop {
  background: #02091dd1;
  border: 0;
  width: 100%;
  position: absolute;
  inset: 0;
}

.vocab-library {
  background: var(--ink);
  color: var(--white);
  flex-direction: column;
  max-height: min(86vh, 820px);
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -24px 60px #0000005c;
}

.vocab-library > header {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid #39434d;
  flex: none;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 5vw, 70px);
  display: flex;
}

.vocab-library > header span {
  color: var(--saffron);
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 800;
}

.vocab-library > header h2 {
  font-family: var(--font-display);
  margin: 5px 0 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: .9;
}

.vocab-library > header p {
  color: var(--cobalt-tint);
  margin: 7px 0 0;
  font-size: .65rem;
}

.vocab-library > header > button {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #ffffff8c;
  min-height: 42px;
  padding: 0 15px;
  font-size: .68rem;
  font-weight: 800;
}

.vocab-library-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 clamp(20px, 5vw, 70px) 36px;
  display: grid;
  overflow-y: auto;
}

.vocab-library-grid > button {
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  border: 1px solid #39434d;
  border-top: 0;
  border-left: 0;
  align-content: start;
  min-height: 148px;
  padding: 18px;
  display: grid;
}

.vocab-library-grid > button:hover {
  background: #151d24;
}

.vocab-library-grid > button.is-current {
  background: var(--saffron);
}

.vocab-library-grid > button.is-reviewed:not(.is-current) {
  box-shadow: inset 4px 0 var(--success);
}

.vocab-library-grid > button > span {
  color: var(--cobalt);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
}

.vocab-library-grid > button > strong {
  font-family: var(--font-arabic);
  margin-top: 5px;
  font-size: 1.55rem;
  line-height: 1.35;
}

.vocab-library-grid > button > small {
  color: var(--ink-tint);
  font-size: .6rem;
}

.vocab-library-grid > button > p {
  margin: 9px 0 0;
  font-size: .72rem;
  font-weight: 800;
}

@media (max-width: 920px) {
  .vocab-studio {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vocab-studio-header {
    align-items: start;
  }

  .vocab-studio-title p, .vocab-studio-links > a:first-child {
    display: none;
  }

  .vocab-study-layout {
    display: block;
  }

  .vocab-card-rail {
    display: none;
  }

  .vocab-flashcard {
    height: min(640px, calc(var(--app-vh) - 205px));
  }

  .vocab-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body:has(.unit-vocab-shell) {
    height: 100vh;
    overflow: hidden;
  }

  body:has(.unit-vocab-shell) > .legal-footer {
    display: none;
  }

  .unit-vocab-shell {
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    display: flex;
    overflow: hidden;
  }

  .unit-vocab-shell > .app-header {
    flex: none;
  }

  .vocab-studio {
    min-height: 0;
    padding: 14px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    flex-direction: column;
    flex: auto;
    display: flex;
    overflow: hidden;
  }

  .vocab-studio.is-immersive {
    height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
  }

  .vocab-session-header {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 14px;
  }

  .vocab-session-header .flashcard-exit {
    grid-column: 1;
    justify-self: start;
    padding-inline: 10px;
  }

  .vocab-session-header .vocab-open-library, .vocab-session-header .vocabulary-app-source {
    text-align: right;
    grid-column: 2;
    justify-self: end;
    padding-inline: 0;
  }

  .vocab-session-header .flashcard-card-navigation {
    grid-column: 1 / -1;
    width: 100%;
  }

  .vocabulary-app-shell {
    padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
  }

  .vocabulary-practice.is-immersive {
    flex-direction: column;
    display: flex;
  }

  .vocabulary-app-word-face {
    flex: 0 0 min(250px, 34dvh);
    padding: 12px 12px 9px;
  }

  .vocabulary-app-word-face .practice-arabic-focus {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
    line-height: 1.25;
  }

  .vocabulary-app-word-face .practice-transliteration {
    margin-bottom: 6px;
    font-size: .68rem;
  }

  .vocabulary-app-word-face .lesson-audio-button {
    width: 62px;
    height: 62px;
  }

  .vocabulary-app-word-face .lesson-audio-face {
    width: 50px;
    height: 50px;
  }

  .vocabulary-app-word-face .lesson-audio-label {
    font-size: .6rem;
  }

  .vocabulary-app-recall, .vocabulary-review-response-deck.is-immersive {
    flex: auto;
    min-height: 0;
    padding: 16px;
  }

  .vocabulary-app-recall {
    align-content: center;
    gap: 18px;
  }

  .vocabulary-app-recall h1 {
    font-size: 1.65rem;
  }

  .vocabulary-app-meaning {
    min-height: 76px;
    padding: 4px 8px 9px;
  }

  .vocabulary-app-meaning strong {
    font-size: 1.7rem;
  }

  .vocabulary-review-response-deck.is-immersive .vocab-combined-response {
    gap: 6px;
    padding-top: 6px;
  }

  .vocabulary-review-response-deck.is-immersive .vocab-voice-panel .lesson-mic {
    width: 62px;
    height: 62px;
  }

  .vocabulary-review-response-deck.is-immersive .vocab-voice-panel .lesson-mic-face {
    width: 48px;
    height: 48px;
  }

  .vocabulary-review-response-deck.is-immersive .vocab-type-panel {
    min-height: 60px;
  }

  .vocabulary-review-response-deck.is-immersive .vocab-type-panel > div {
    min-height: 46px;
  }

  .vocabulary-review-response-deck.is-immersive .vocab-skip-response {
    min-height: 36px;
  }

  .vocabulary-app-complete > div {
    flex-direction: column;
    width: min(100%, 360px);
  }

  .vocab-studio-header {
    flex: none;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .vocab-studio-title h1 {
    font-size: 1.9rem;
  }

  .vocab-studio-title > span {
    font-size: .58rem;
  }

  .vocab-studio-links {
    gap: 6px;
  }

  .vocab-studio-links > a {
    display: none;
  }

  .vocab-studio-links > button {
    min-height: 38px;
    padding: 0 11px;
    font-size: .62rem;
  }

  .vocab-studio-progress {
    flex: none;
    gap: 9px;
    width: calc(100% - 4px);
    margin: 10px 2px 8px;
  }

  .vocab-studio-progress strong {
    font-size: 1.25rem;
  }

  .vocab-studio-progress > span {
    font-size: .52rem;
  }

  .vocab-study-layout {
    flex: auto;
    min-height: 0;
  }

  .vocab-flashcard {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .vocab-card-topline {
    gap: 8px;
    min-height: 58px;
    padding: 7px 10px;
  }

  .vocab-card-topline p {
    font-size: .5rem;
  }

  .vocab-card-topline button {
    min-height: 44px;
    padding: 7px 9px;
    font-size: .58rem;
  }

  .vocab-card-topline svg {
    width: 17px;
    height: 17px;
  }

  .vocab-card-body {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    display: flex;
    overflow: hidden;
  }

  .vocab-word-face {
    border-bottom: 1px solid #39434d;
    border-right: 0;
    flex: 0 0 min(250px, 34dvh);
    align-content: center;
    padding: 14px 12px 10px;
  }

  .vocab-word-face .vocab-focus-arabic {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
    line-height: 1.25;
  }

  .vocab-word-face .vocab-transliteration {
    margin-bottom: 7px;
    font-size: .68rem;
  }

  .vocab-word-face .lesson-audio-button {
    width: 62px;
    height: 62px;
  }

  .vocab-word-face .lesson-audio-face {
    width: 50px;
    height: 50px;
  }

  .vocab-word-face .lesson-audio-label {
    font-size: .6rem;
  }

  .vocab-classmate-chip {
    top: 8px;
    left: 9px;
  }

  .vocab-classmate-chip img {
    width: 27px;
    height: 27px;
  }

  .vocab-classmate-chip p {
    display: none;
  }

  .vocab-recall-panel, .vocab-response-deck {
    flex: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    padding: 18px 16px;
    overflow: auto;
  }

  .vocab-recall-panel {
    align-content: start;
  }

  .vocab-recall-panel h2, .vocab-response-deck h2 {
    font-size: 1.55rem;
  }

  .vocab-translation-reveal {
    min-height: 76px;
    padding: 8px 12px 12px;
    font-size: 1.65rem;
  }

  .vocab-recall-panel .vocab-choices {
    gap: 7px;
    margin-top: 14px;
  }

  .vocab-recall-panel .vocab-choices button {
    min-height: 46px;
    font-size: .68rem;
  }

  .vocab-model-line {
    min-height: 92px;
    padding: 4px 0 9px;
  }

  .vocab-model-line p {
    font-size: 1.55rem;
  }

  .vocab-model-line small {
    font-size: .56rem;
  }

  .vocab-model-line .lesson-audio-button {
    width: 50px;
    height: 50px;
  }

  .vocab-model-line .lesson-audio-face {
    width: 40px;
    height: 40px;
  }

  .vocab-model-line .lesson-audio-label {
    font-size: .54rem;
  }

  .vocab-combined-response {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 112px;
    padding-top: 8px;
  }

  .vocab-voice-panel, .vocab-type-panel {
    min-height: 88px;
  }

  .vocab-voice-panel .microphone-control {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  .vocab-voice-panel .lesson-mic-label {
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 92px;
    min-height: 2.3em;
    font-size: .56rem;
    line-height: 1.15;
  }

  .vocab-type-panel {
    width: 100%;
    min-height: 72px;
  }

  .vocab-type-panel > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .vocab-type-panel button {
    flex: 0 0 62px;
    width: 62px;
    padding: 0 7px;
  }

  .vocab-voice-panel .lesson-mic {
    width: 58px;
    height: 58px;
  }

  .vocab-voice-panel .lesson-mic-face {
    width: 46px;
    height: 46px;
  }

  .vocab-result-panel {
    min-height: 126px;
  }

  .vocab-flashcard > .vocab-save-message {
    font-size: .52rem;
  }

  .vocab-library {
    max-height: 92vh;
  }

  .vocab-library > header {
    padding: 18px 16px;
  }

  .vocab-library > header p {
    display: none;
  }

  .vocab-library-grid {
    padding: 0 10px max(24px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vocab-library-grid > button {
    min-height: 124px;
    padding: 14px;
  }

  .vocab-library-grid > button > strong {
    font-size: 1.3rem;
  }
}

@supports (height: 100svh) {
  @media (max-width: 680px) {
    body:has(.unit-vocab-shell), .unit-vocab-shell {
      height: 100svh;
    }
  }
}

@media (max-width: 380px), (max-height: 720px) and (max-width: 680px) {
  .vocab-studio-title h1 {
    font-size: 1.6rem;
  }

  .vocab-flashcard {
    min-height: 0;
  }

  .vocab-word-face {
    flex-basis: 188px;
  }

  .vocab-word-face .vocab-focus-arabic {
    font-size: 2.8rem;
  }

  .vocab-classmate-chip {
    display: none;
  }

  .vocab-recall-panel, .vocab-response-deck {
    min-height: 238px;
    padding: 14px;
  }
}

@media (max-width: 680px) {
  .vocabulary-review-response-deck {
    flex: none;
    min-height: 0;
    margin-top: 20px;
    padding: 14px 0 10px;
    overflow: visible;
  }

  .vocabulary-review-response-deck .vocab-model-line {
    min-height: 104px;
  }

  .vocabulary-review-response-deck .vocab-combined-response {
    min-height: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vocab-progress-track span {
    transition: none;
  }

  .vocab-studio.is-immersive {
    animation: none;
  }
}

.onboarding-shell, .foundations-shell, .foundation-lesson-shell, .flashcards-shell {
  background: var(--paper);
  min-height: var(--app-vh);
}

body:has(.foundation-lesson-shell) > .legal-footer, body:has(.foundation-lesson-shell) > .pwa-install {
  display: none;
}

.foundation-lesson-app {
  min-height: calc(var(--app-vh) - 74px);
}

.foundations-command, .flashcard-command {
  background: var(--cobalt);
  color: var(--white);
  justify-content: space-between;
  align-items: center;
  min-height: 150px;
  padding: 28px clamp(24px, 6vw, 92px);
  display: flex;
}

.foundations-command h1, .flashcard-command h1 {
  font-family: var(--font-display);
  letter-spacing: -.025em;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: .95;
}

.foundations-command p, .flashcard-command p {
  color: var(--cobalt-tint);
  margin: 13px 0 0;
  line-height: 1.5;
}

.foundations-total {
  min-width: 240px;
}

.foundations-total strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  display: block;
}

.foundations-total span {
  color: var(--cobalt-tint);
  margin-top: 4px;
  font-size: .72rem;
  display: block;
}

.foundations-total > div {
  background: #ffffff3d;
  height: 4px;
  margin-top: 15px;
  overflow: hidden;
}

.foundations-total i {
  background: var(--saffron);
  transform-origin: 0;
  height: 100%;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  display: block;
}

.foundations-next {
  background: var(--ink);
  color: var(--white);
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 220px;
  padding: 0 clamp(24px, 6vw, 92px);
  display: grid;
}

.foundations-next-marker {
  border-right: 1px solid #36404a;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  display: flex;
}

.foundations-next-marker span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .84rem;
  font-weight: 700;
}

.foundations-next-marker strong {
  font-family: var(--font-display);
  margin-top: 12px;
  font-size: 5rem;
  line-height: .85;
}

.foundations-next > div:nth-child(2) {
  align-self: center;
  max-width: 760px;
  padding: 34px clamp(28px, 4vw, 70px);
}

.foundations-next h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.foundations-next p {
  color: var(--ink-tint);
  margin: 15px 0 8px;
  line-height: 1.55;
}

.foundations-next small {
  color: var(--saffron-pale);
  line-height: 1.45;
  display: block;
}

.foundations-next > a {
  background: var(--saffron);
  color: var(--ink);
  justify-content: center;
  align-self: center;
  align-items: center;
  min-width: 190px;
  min-height: 62px;
  padding: 18px 24px;
  font-weight: 800;
  display: flex;
}

.foundations-next > a:hover {
  background: var(--saffron-pale);
}

.foundations-ledger {
  padding: 54px clamp(24px, 6vw, 92px) 80px;
}

.foundations-ledger > header {
  border-bottom: 1px solid #aab4c1;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 22px;
  display: flex;
}

.foundations-ledger h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2.5rem;
}

.foundations-ledger header p {
  color: #556170;
  max-width: 62ch;
  margin: 8px 0 0;
  line-height: 1.55;
}

.foundations-ledger header a {
  border: 1px solid var(--cobalt);
  color: var(--cobalt);
  min-height: 48px;
  padding: 14px 18px;
  font-weight: 700;
}

.foundations-ledger ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foundations-ledger li {
  border-bottom: 1px solid var(--line-light);
}

.foundations-ledger li > a {
  grid-template-columns: 54px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 26px;
  min-height: 118px;
  padding: 20px 10px;
  display: grid;
}

.foundations-ledger li > a:hover {
  background: #eef2ff;
}

.foundation-gauge {
  background: conic-gradient(var(--cobalt) var(--foundation-angle), #d9deea 0);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  display: flex;
  position: relative;
}

.foundation-gauge:before {
  background: var(--paper);
  content: "";
  border-radius: 50%;
  width: 34px;
  height: 34px;
  position: absolute;
}

.foundation-gauge span {
  color: var(--cobalt-deep);
  z-index: 1;
  font-weight: 800;
  position: relative;
}

.foundations-ledger li.is-complete .foundation-gauge {
  background: var(--success);
}

.foundations-ledger li.is-complete .foundation-gauge:before {
  display: none;
}

.foundations-ledger li.is-complete .foundation-gauge span {
  color: var(--white);
}

.foundations-ledger li strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.foundations-ledger li p {
  color: #5b6674;
  margin: 5px 0 0;
  line-height: 1.45;
}

.foundation-row-status {
  text-align: right;
}

.foundation-row-status span {
  color: var(--cobalt);
  font-weight: 800;
  display: block;
}

.foundation-row-status small {
  color: #697483;
  margin-top: 5px;
  display: block;
}

.foundations-signin {
  background: var(--cobalt-deep);
  color: var(--white);
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 18px 40px;
  padding: 34px clamp(24px, 6vw, 92px);
  display: grid;
}

.foundations-signin h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2rem;
}

.foundations-signin p {
  color: var(--cobalt-tint);
  margin: 0;
  line-height: 1.5;
}

.foundations-signin a {
  background: var(--saffron);
  color: var(--ink);
  padding: 17px 22px;
  font-weight: 800;
}

.foundation-lesson-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 180px minmax(0, 1fr) 240px;
  align-items: center;
  gap: 30px;
  min-height: 96px;
  padding: 18px clamp(24px, 5vw, 72px);
  display: grid;
}

.foundation-lesson-bar > a {
  color: var(--cobalt);
  font-weight: 800;
}

.foundation-lesson-bar > div:nth-child(2) span {
  color: #667281;
  text-transform: uppercase;
  font-size: .7rem;
  display: block;
}

.foundation-lesson-bar > div:nth-child(2) strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.foundation-lesson-progress > span {
  color: #566170;
  text-align: right;
  margin-bottom: 8px;
  font-size: .72rem;
  display: block;
}

.foundation-lesson-progress > i {
  background: #d9deea;
  height: 4px;
  display: block;
  overflow: hidden;
}

.foundation-lesson-progress b {
  background: var(--cobalt);
  transform-origin: 0;
  height: 100%;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  display: block;
}

.foundation-reading-desk {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr);
  min-height: 500px;
  display: grid;
}

.foundation-card-stage {
  background: var(--ink);
  color: var(--white);
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
  padding: 55px clamp(28px, 6vw, 90px);
  display: grid;
}

.foundation-specimen p {
  color: var(--saffron);
  font-family: var(--font-display);
  margin: 0 0 24px;
  font-size: 1.15rem;
  font-weight: 700;
}

.foundation-specimen > strong {
  font-family: var(--font-arabic);
  text-align: center;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 600;
  line-height: 1.35;
  display: block;
}

.foundation-card-stage.is-mark-card .foundation-specimen > strong {
  padding-block: .32em;
  line-height: .72;
}

.foundation-card-stage.is-word .foundation-specimen > strong, .foundation-card-stage.is-sentence .foundation-specimen > strong {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.foundation-specimen small {
  color: var(--ink-tint);
  text-align: center;
  margin-top: 22px;
  display: block;
}

.foundation-card-stage .audio-button-control {
  justify-self: center;
}

.foundation-form-desk {
  background: var(--paper);
  padding: 48px clamp(24px, 4vw, 54px);
}

.foundation-form-desk h2 {
  color: var(--cobalt);
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.45rem;
}

.foundation-form-desk header p {
  margin: 9px 0 32px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.foundation-form-desk dl {
  border-block: 1px solid #aeb8c4;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 28px;
  display: grid;
}

.foundation-form-desk dl.is-two-form {
  grid-template-columns: 1fr;
}

.foundation-form-desk dl.is-two-form div:nth-child(odd) {
  border-right: 0;
}

.foundation-form-desk dl div {
  border-bottom: 1px solid var(--line-light);
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  padding: 10px 14px;
  display: flex;
}

.foundation-form-desk dl div:nth-child(odd) {
  border-right: 1px solid var(--line-light);
}

.foundation-form-desk dt {
  color: #657180;
  font-size: .7rem;
}

.foundation-form-desk dd {
  font-family: var(--font-arabic);
  margin: 0;
  font-size: 2.1rem;
}

.foundation-reveal {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  width: 100%;
  min-height: 58px;
  font-weight: 800;
}

.foundation-answer {
  border-top: 3px solid var(--saffron);
  padding-top: 18px;
}

.foundation-answer span {
  color: #6c7682;
  font-size: .7rem;
  display: block;
}

.foundation-answer strong {
  margin-top: 8px;
  font-size: 1.35rem;
  display: block;
}

.foundation-answer p {
  color: #596574;
  line-height: 1.45;
}

.foundation-response {
  background: var(--paper);
  border-top: 1px solid var(--line-light);
  grid-template-columns: minmax(260px, 1fr) 140px minmax(300px, 1.5fr);
  align-items: center;
  gap: 24px;
  padding: 32px clamp(24px, 6vw, 90px);
  display: grid;
}

.foundation-response h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2rem;
}

.foundation-response > div:first-child p {
  color: #586473;
  max-width: 58ch;
  margin: 8px 0 0;
  line-height: 1.5;
}

.foundation-speech-result {
  border-top: 2px solid var(--saffron);
  padding-top: 12px;
}

.foundation-speech-result.is-good {
  border-top-color: var(--success);
}

.foundation-speech-result strong {
  color: #865f00;
}

.foundation-speech-result.is-good strong {
  color: var(--success);
}

.foundation-speech-result p {
  font-family: var(--font-arabic);
  margin: 8px 0 0;
  font-size: 1.5rem;
}

.foundation-ratings {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  display: grid;
}

.foundation-ratings button, .flashcard-ratings button {
  cursor: pointer;
  background: none;
  border: 1px solid #8793a1;
  min-height: 58px;
  font-weight: 800;
}

.foundation-ratings button:hover, .flashcard-ratings button:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.foundation-ratings small, .flashcard-ratings small {
  margin-top: 3px;
  font-size: .62rem;
  font-weight: 400;
  display: block;
}

.foundation-message {
  color: #6b5000;
  grid-column: 1 / -1;
  margin: 0;
}

.foundation-achievement {
  background: var(--success-pale);
  border-block: 1px solid var(--line-light);
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px clamp(24px, 6vw, 90px);
  display: grid;
}

.foundation-achievement-mark {
  background: var(--success);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  display: flex;
}

.foundation-achievement-mark svg {
  fill: none;
  height: 29px;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3px;
  width: 29px;
}

.foundation-achievement h2 {
  color: var(--success);
  font-family: var(--font-display);
  margin: 0;
  font-size: 2rem;
}

.foundation-achievement p {
  color: var(--success);
  max-width: 70ch;
  margin: 5px 0 0;
  line-height: 1.5;
}

.foundation-achievement > a {
  background: var(--saffron);
  color: var(--ink);
  text-align: center;
  min-height: 52px;
  padding: 15px 20px;
  font-weight: 800;
}

.foundation-card-nav {
  background: var(--cobalt-deep);
  color: var(--white);
  justify-content: space-between;
  align-items: center;
  min-height: 82px;
  padding: 14px clamp(24px, 6vw, 90px);
  display: flex;
}

.foundation-card-nav button, .foundation-card-nav a {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  border: 0;
  min-width: 140px;
  padding: 15px 20px;
  font-weight: 800;
}

.foundation-card-nav button:disabled {
  cursor: default;
  opacity: .45;
}

.foundation-card-nav span {
  color: var(--cobalt-tint);
  font-size: .75rem;
}

.flashcard-decks {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  padding: 44px clamp(24px, 6vw, 92px) 64px;
}

.flashcard-decks > header {
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
  display: flex;
}

.flashcard-decks > header p {
  color: #596575;
  max-width: 56ch;
  margin: 0;
  line-height: 1.5;
}

.flashcard-decks > header > span {
  color: var(--cobalt);
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 700;
}

.flashcard-deck-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.flashcard-deck-grid > button {
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  border: 1px solid #aeb8c4;
  border-radius: 14px;
  grid-column: span 5;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 150px;
  padding: 24px;
  transition: background-color .18s, border-color .18s, transform .26s cubic-bezier(.16, 1, .3, 1);
  display: grid;
}

.flashcard-deck-grid > button:first-child, .flashcard-deck-grid > button:nth-child(4) {
  grid-column: span 7;
}

.flashcard-deck-grid > button.is-daily {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.flashcard-deck-grid > button:hover {
  border-color: var(--cobalt);
  background: #eef2ff;
  transform: translateY(-2px);
}

.flashcard-deck-grid > button.is-daily:hover {
  background: var(--ink-lift);
  border-color: var(--saffron);
}

.flashcard-deck-grid > button:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.flashcard-deck-icon {
  color: var(--cobalt);
  border: 1px solid #aeb8c4;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  display: flex;
}

.flashcard-deck-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7px;
  width: 27px;
  height: 27px;
}

.flashcard-deck-grid > button.is-daily .flashcard-deck-icon {
  color: var(--saffron);
  border-color: #725b15;
}

.flashcard-deck-copy {
  min-width: 0;
}

.flashcard-deck-copy strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  display: block;
}

.flashcard-deck-copy small {
  color: #5c6877;
  max-width: 45ch;
  margin-top: 9px;
  font-size: .78rem;
  line-height: 1.45;
  display: block;
}

.flashcard-deck-grid > button.is-daily .flashcard-deck-copy small {
  color: var(--ink-tint);
}

.flashcard-deck-status {
  color: var(--cobalt);
  white-space: nowrap;
  align-items: center;
  gap: 9px;
  display: flex;
}

.flashcard-deck-status b {
  font-family: var(--font-display);
  font-size: 1rem;
}

.flashcard-deck-status svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  width: 20px;
  height: 20px;
}

.flashcard-deck-grid > button.is-daily .flashcard-deck-status {
  color: var(--saffron);
}

.flashcard-review-surface {
  scroll-margin-top: 0;
}

.flashcard-review-surface:focus {
  outline: 2px solid var(--saffron);
  outline-offset: 4px;
}

.flashcard-desk {
  background: var(--ink);
  color: var(--white);
  width: 100%;
  min-height: 520px;
  margin: 52px 0;
  padding: 28px clamp(24px, 5vw, 64px) 40px;
}

.flashcard-desk.flashcard-review-surface {
  min-height: max(520px, 100svh);
}

.flashcard-review-surface.is-immersive {
  transform-origin: top;
  z-index: 100;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  animation: .32s cubic-bezier(.16, 1, .3, 1) both flashcard-app-enter;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.flashcard-desk.is-immersive {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  flex-direction: column;
  display: flex;
}

.flashcard-desk > header {
  color: var(--ink-tint);
  border-bottom: 1px solid #39434d;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  font-size: .72rem;
  display: flex;
}

.flashcard-desk.is-immersive > header {
  grid-template-columns: auto minmax(100px, 1fr) auto;
  display: grid;
}

.flashcard-exit {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #5b6670;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 800;
  display: inline-flex;
}

.flashcard-exit:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.flashcard-exit svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  width: 17px;
  height: 17px;
}

.flashcard-card-navigation {
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  align-items: center;
  gap: 10px;
  display: grid;
}

.flashcard-card-navigation button {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #5b6670;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 800;
  display: flex;
}

.flashcard-card-navigation button:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.flashcard-card-navigation button:disabled {
  color: #737d86;
  cursor: default;
  border-color: #39434d;
}

.flashcard-card-navigation strong {
  color: var(--ink-tint);
  text-align: center;
  min-width: 64px;
}

.flashcard-card-navigation svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  width: 17px;
  height: 17px;
}

.flashcard-face {
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: center;
  gap: 24px;
  min-height: 265px;
  padding: 34px 0;
  display: grid;
}

.flashcard-desk.is-immersive .flashcard-face {
  flex: auto;
  min-height: min(265px, 42dvh);
}

.flashcard-face p {
  color: var(--saffron);
  grid-column: 1 / -1;
  margin: 0;
}

.flashcard-face > strong {
  font-family: var(--font-arabic);
  text-align: center;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 1.45;
}

.flashcard-reveal {
  background: var(--saffron);
  color: var(--ink);
  cursor: pointer;
  border: 0;
  width: 100%;
  min-height: 62px;
  font-weight: 800;
}

.flashcard-answer {
  text-align: center;
  border-block: 1px solid #39434d;
  padding: 22px 0;
}

.flashcard-answer span {
  color: var(--ink-tint);
  font-size: .68rem;
  display: block;
}

.flashcard-answer strong {
  margin-top: 8px;
  font-size: 1.5rem;
  display: block;
}

.flashcard-answer p {
  color: var(--saffron-pale);
  font-family: var(--font-arabic);
  margin: 12px 0 0;
  font-size: 1.8rem;
}

.flashcard-ratings {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
  display: grid;
}

.flashcard-desk.is-immersive .flashcard-ratings {
  background: var(--ink);
  padding-block: 10px max(2px, env(safe-area-inset-bottom));
  z-index: 2;
  margin-top: 14px;
  position: sticky;
  bottom: 0;
}

.flashcard-ratings button {
  color: var(--white);
  border-color: #5b6670;
}

.flashcard-ratings button:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.flashcard-message {
  color: var(--saffron-pale);
  text-align: center;
  margin: 18px 0 0;
}

.flashcard-empty {
  text-align: center;
  max-width: 720px;
  margin: 80px auto;
  padding: 0 24px;
}

.flashcard-empty.flashcard-review-surface {
  min-height: calc(100svh - 168px);
}

.flashcard-empty.is-immersive {
  background: var(--paper);
  align-content: center;
  max-width: none;
  padding: 80px 24px;
  display: grid;
}

.flashcard-empty.is-immersive .flashcard-exit {
  color: var(--cobalt);
  left: 24px;
  top: max(24px, env(safe-area-inset-top));
  position: absolute;
}

.flashcard-empty h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2.6rem;
}

.flashcard-empty p {
  color: #5c6877;
  line-height: 1.55;
}

.flashcard-empty a {
  background: var(--cobalt);
  color: var(--white);
  margin-top: 12px;
  padding: 16px 22px;
  font-weight: 800;
  display: inline-block;
}

.flashcard-footer {
  border-top: 1px solid var(--line-light);
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 24px;
  display: flex;
}

.flashcard-footer a {
  color: var(--cobalt);
  font-weight: 800;
}

.flashcard-footer span {
  color: #657180;
  font-size: .72rem;
}

@keyframes flashcard-app-enter {
  from {
    filter: blur(4px);
    opacity: .72;
    transform: translateY(12px) scale(.988);
  }

  to {
    filter: blur();
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flashcard-review-surface.is-immersive {
    animation: none;
  }
}

.onboarding-script-level {
  border: 0;
  border-top: 1px solid var(--line-light);
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 22px 0 0;
  padding: 22px 0 0;
  display: grid;
}

.onboarding-script-level legend {
  font-family: var(--font-display);
  padding: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.onboarding-script-level button {
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  border: 1px solid #aeb8c4;
  min-height: 52px;
  padding: 10px 14px;
}

.onboarding-script-level button[aria-pressed="true"] {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background: #eaf0ff;
  font-weight: 800;
}

.placement-result-unit.is-foundations > strong {
  font-family: var(--font-arabic);
}

.dashboard-foundations {
  background: var(--paper);
  border-block: 1px solid var(--line-light);
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 28px clamp(24px, 6vw, 92px);
  display: grid;
}

.dashboard-foundations.is-primary {
  background: var(--ink);
  color: var(--white);
}

.dashboard-foundations-mark {
  border-right: 1px solid #aeb8c4;
  flex-direction: column;
  display: flex;
}

.dashboard-foundations-mark span {
  color: var(--cobalt);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
}

.dashboard-foundations.is-primary .dashboard-foundations-mark span {
  color: var(--saffron);
}

.dashboard-foundations-mark strong {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}

.dashboard-foundations-mark small {
  color: #697584;
}

.dashboard-foundations h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2rem;
}

.dashboard-foundations p {
  color: #596575;
  max-width: 68ch;
  margin: 8px 0 0;
  line-height: 1.5;
}

.dashboard-foundations.is-primary p {
  color: var(--ink-tint);
}

.dashboard-foundations-actions {
  gap: 9px;
  display: flex;
}

.dashboard-foundations-actions a {
  border: 1px solid var(--cobalt);
  color: var(--cobalt);
  min-height: 48px;
  padding: 14px 17px;
  font-weight: 800;
}

.dashboard-foundations.is-primary .dashboard-foundations-actions a:first-child {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.dashboard-foundations.is-primary .dashboard-foundations-actions a:last-child {
  color: var(--white);
  border-color: #66717b;
}

.curriculum-foundations-band {
  background: var(--ink);
  color: var(--white);
  grid-template-columns: 145px minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  min-height: 170px;
  padding: 26px clamp(24px, 6vw, 92px);
  display: grid;
}

.curriculum-foundations-band > div:first-child {
  border-right: 1px solid #3e4852;
}

.curriculum-foundations-band > div:first-child span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  display: block;
}

.curriculum-foundations-band > div:first-child strong {
  font-family: var(--font-arabic);
  font-size: 2.5rem;
}

.curriculum-foundations-band h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 2.2rem;
}

.curriculum-foundations-band p {
  color: var(--ink-tint);
  margin: 8px 0 0;
  line-height: 1.5;
}

.curriculum-foundations-band a {
  background: var(--saffron);
  color: var(--ink);
  padding: 17px 22px;
  font-weight: 800;
}

@media (max-width: 820px) {
  body:has(.dashboard-shell), .dashboard-shell {
    background: var(--theme-canvas);
  }

  .dashboard-mobile-home {
    max-width: 560px;
    padding: 22px max(16px, env(safe-area-inset-left)) calc(104px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
    gap: 24px;
    margin: 0 auto;
    display: grid;
  }

  .dashboard-command-bar, .dashboard-billing, .dashboard-foundations, .dashboard-course-position, .review-strip, .dashboard-book-map, .dashboard-desk {
    display: none;
  }

  .dashboard-mobile-title {
    justify-content: space-between;
    align-items: center;
    padding: 4px 2px 0;
    display: flex;
  }

  .dashboard-mobile-title h1 {
    color: var(--theme-text);
    font-family: var(--font-display);
    letter-spacing: -.03em;
    margin: 0;
    font-size: 2.65rem;
    font-weight: 700;
    line-height: .95;
  }

  .dashboard-mobile-title p {
    color: var(--theme-muted);
    margin: 7px 0 0;
    font-size: .78rem;
  }

  .dashboard-mobile-title > a {
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    display: flex;
  }

  .dashboard-mobile-title > a > span {
    background: var(--cobalt);
    color: var(--white);
    font-family: var(--font-display);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
  }

  .dashboard-mobile-continue {
    background: var(--cobalt-deep);
    color: var(--white);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px #09237133;
  }

  .dashboard-mobile-unit-line {
    color: var(--cobalt-tint);
    text-transform: uppercase;
    justify-content: space-between;
    align-items: center;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
  }

  .dashboard-mobile-unit-line strong {
    color: var(--saffron);
    font-variant-numeric: tabular-nums;
  }

  .dashboard-mobile-progress {
    background: #fff3;
    height: 3px;
    margin-top: 11px;
    overflow: hidden;
  }

  .dashboard-mobile-progress i {
    background: var(--saffron);
    min-width: 3px;
    height: 100%;
    transition: width .42s cubic-bezier(.16, 1, .3, 1);
    display: block;
  }

  .dashboard-mobile-continue h2 {
    font-family: var(--font-display);
    letter-spacing: -.025em;
    max-width: 11ch;
    margin: 26px 0 0;
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 600;
    line-height: .98;
  }

  .dashboard-mobile-continue p {
    color: var(--cobalt-tint);
    max-width: 42ch;
    margin: 12px 0 22px;
    font-size: .82rem;
    line-height: 1.45;
  }

  .dashboard-mobile-continue > a {
    background: var(--saffron);
    color: var(--ink);
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    padding: 0 17px;
    font-size: .86rem;
    font-weight: 800;
    display: flex;
  }

  .dashboard-mobile-continue > a svg, .dashboard-mobile-chevron {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2px;
    width: 21px;
    height: 21px;
  }

  .dashboard-mobile-actions, .dashboard-mobile-snapshot, .dashboard-mobile-path {
    min-width: 0;
  }

  .dashboard-mobile-actions > h2, .dashboard-mobile-section-heading h2 {
    color: var(--theme-text);
    font-family: var(--font-display);
    letter-spacing: -.02em;
    margin: 0 0 10px 2px;
    font-size: 1.55rem;
    font-weight: 700;
  }

  .dashboard-mobile-actions > div, .dashboard-mobile-path-list {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    overflow: hidden;
  }

  .dashboard-mobile-actions > div > a, .dashboard-mobile-actions > div > .dashboard-mobile-action-link {
    color: var(--theme-text);
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    padding: 10px 14px;
    display: grid;
  }

  .dashboard-mobile-actions > div > a + a {
    border-top: 1px solid var(--theme-border);
  }

  .dashboard-mobile-actions strong, .dashboard-mobile-actions small, .dashboard-mobile-path-list strong, .dashboard-mobile-path-list small {
    display: block;
  }

  .dashboard-mobile-actions strong {
    font-size: .86rem;
  }

  .dashboard-mobile-actions small {
    color: var(--theme-muted);
    margin-top: 3px;
    font-size: .68rem;
  }

  .dashboard-mobile-action-icon {
    color: var(--cobalt);
    background: #e9efff;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    display: flex;
  }

  .dashboard-mobile-action-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8px;
    width: 23px;
    height: 23px;
  }

  .dashboard-mobile-actions .dashboard-mobile-chevron, .dashboard-mobile-path-list .dashboard-mobile-chevron {
    color: var(--theme-muted);
  }

  .dashboard-mobile-section-heading {
    justify-content: space-between;
    align-items: baseline;
    display: flex;
  }

  .dashboard-mobile-section-heading > a {
    color: var(--cobalt);
    min-height: 44px;
    padding: 12px 2px;
    font-size: .72rem;
    font-weight: 800;
  }

  .dashboard-mobile-stats {
    background: var(--ink);
    color: var(--white);
    border-radius: 14px;
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    overflow: hidden;
  }

  .dashboard-mobile-stats > div {
    border-right: 1px solid #3b454e;
    min-width: 0;
    padding: 18px 12px;
  }

  .dashboard-mobile-stats > div:last-child {
    border-right: 0;
  }

  .dashboard-mobile-stats strong {
    color: var(--saffron);
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    font-size: 1.8rem;
    line-height: 1;
    display: block;
  }

  .dashboard-mobile-stats span {
    color: var(--ink-tint);
    margin-top: 6px;
    font-size: .6rem;
    line-height: 1.25;
    display: block;
  }

  .dashboard-mobile-path-list > a, .dashboard-mobile-path-list > div {
    color: var(--theme-text);
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 13px;
    min-height: 67px;
    padding: 10px 14px;
    display: grid;
  }

  .dashboard-mobile-path-list > a + a, .dashboard-mobile-path-list > a + div, .dashboard-mobile-path-list > div + a, .dashboard-mobile-path-list > div + div {
    border-top: 1px solid var(--theme-border);
  }

  .dashboard-mobile-path-list > a > span:first-child, .dashboard-mobile-path-list > div > span:first-child {
    color: var(--cobalt);
    font-family: var(--font-display);
    border: 1px solid #9ba6b5;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-weight: 700;
    display: flex;
  }

  .dashboard-mobile-path-list > a > span:first-child svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4px;
    width: 18px;
    height: 18px;
  }

  .dashboard-mobile-path-list > a.is-complete > span:first-child {
    color: var(--white);
    background: #2d722b;
    border-color: #2d722b;
  }

  .dashboard-mobile-path-list strong {
    font-size: .84rem;
  }

  .dashboard-mobile-path-list small {
    color: var(--theme-muted);
    margin-top: 3px;
    font-size: .65rem;
  }

  .dashboard-mobile-path-list > div.is-locked {
    color: #7c8694;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .dashboard-mobile-path-list > div.is-locked > span:first-child {
    color: #929ba8;
    border-color: #c0c6d0;
  }

  .dashboard-mobile-home a {
    -webkit-tap-highlight-color: transparent;
  }

  .dashboard-mobile-home a:active {
    filter: brightness(.94);
  }

  .dashboard-mobile-home a:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 3px;
  }

  .app-header {
    min-height: calc(62px + env(safe-area-inset-top));
  }

  .app-header-menu-toggle {
    color: var(--white);
    cursor: pointer;
    background: none;
    border: 1px solid #ffffff6b;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 44px;
    padding: 0;
    display: flex;
  }

  .app-header-menu-toggle span {
    transform-origin: center;
    background: currentColor;
    width: 20px;
    height: 2px;
    transition: opacity .18s ease-out, transform .18s ease-out;
    display: block;
  }

  .app-header-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .app-header-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .app-header-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .app-header-menu-toggle:hover {
    border-color: var(--saffron);
    color: var(--saffron);
  }

  .app-header-menu-toggle:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 3px;
  }

  .app-header nav {
    background: var(--cobalt-deep);
    opacity: 0;
    padding: 10px max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    pointer-events: none;
    visibility: hidden;
    border-top: 1px solid #fff3;
    border-bottom: 1px solid #ffffff47;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transition: opacity .18s ease-out, transform .18s ease-out, visibility .18s step-end;
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: translateY(-8px);
  }

  .app-header nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity .18s ease-out, transform .18s ease-out, visibility step-start;
    transform: translateY(0);
  }

  .app-header nav a, .app-header nav button {
    text-align: left;
    border-bottom: 1px solid #ffffff2e;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 15px 4px;
    font-size: .88rem;
    display: flex;
  }

  .app-header nav a[aria-current="page"] {
    border-bottom-color: var(--saffron);
    color: var(--saffron);
  }

  .app-header-sound-control {
    border-bottom: 1px solid #ffffff2e;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding: 5px 4px;
    display: flex;
  }

  .app-header-sound-label {
    font-size: .88rem;
    display: block;
  }

  .app-header-theme-control {
    border-bottom: 1px solid #ffffff2e;
    display: block;
  }

  .app-header nav .theme-toggle {
    border-bottom: 0;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding: 5px 4px;
    display: flex;
  }

  .theme-toggle-label {
    font-size: .88rem;
    display: block;
  }

  .theme-toggle-track {
    background: #ffffff29;
    border: 1px solid #ffffff61;
    border-radius: 999px;
    flex: 0 0 52px;
    align-items: center;
    width: 52px;
    height: 30px;
    padding: 3px;
    transition: background-color .18s ease-out, border-color .18s ease-out;
    display: flex;
  }

  .theme-toggle-thumb {
    background: var(--white);
    color: var(--cobalt-deep);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    transition: transform .22s cubic-bezier(.16, 1, .3, 1), background-color .18s ease-out, color .18s ease-out;
    display: flex;
    transform: translateX(0);
  }

  .theme-toggle-thumb svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8px;
    width: 14px;
    height: 14px;
  }

  .theme-toggle[aria-checked="true"] .theme-toggle-track {
    background: var(--saffron);
    border-color: var(--saffron);
  }

  .theme-toggle[aria-checked="true"] .theme-toggle-thumb {
    background: var(--ink);
    color: var(--saffron);
    transform: translateX(22px);
  }

  .app-header nav .feedback-sound-toggle {
    aspect-ratio: 1;
    border: 1px solid #ffffff57;
    flex: 0 0 38px;
    justify-content: center;
    align-items: center;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0;
  }

  .app-header nav .feedback-sound-toggle svg {
    width: 18px;
    height: 18px;
  }

  .app-header nav .app-header-context-link {
    color: var(--saffron-pale);
    font-weight: 800;
  }

  .app-header nav .app-header-signin {
    justify-content: center;
    min-height: 48px;
    margin-top: 10px;
    padding: 13px 18px;
  }

  .foundations-command, .flashcard-command {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    min-height: 0;
    padding: 26px 20px;
  }

  .foundations-total {
    width: 100%;
  }

  .foundations-next {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 0 20px;
  }

  .foundations-next-marker {
    min-height: 180px;
  }

  .foundations-next-marker strong {
    font-size: 3.8rem;
  }

  .foundations-next > div:nth-child(2) {
    padding: 28px 18px;
  }

  .foundations-next > a {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 22px;
  }

  .foundations-ledger {
    padding: 36px 20px 60px;
  }

  .foundations-ledger > header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .foundations-ledger li > a {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 15px;
    min-height: 102px;
    padding: 15px 0;
  }

  .foundation-row-status {
    text-align: left;
    grid-column: 2;
  }

  .foundations-ledger li p {
    font-size: .78rem;
  }

  .foundations-signin {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .foundation-lesson-bar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px 20px;
  }

  .foundation-lesson-bar > a {
    font-size: .72rem;
  }

  .foundation-lesson-progress {
    grid-column: 1 / -1;
  }

  .foundation-reading-desk {
    grid-template-columns: 1fr;
  }

  .foundation-card-stage {
    grid-template-columns: 1fr;
    min-height: 330px;
    padding: 28px 20px 24px;
  }

  .foundation-specimen p {
    margin-bottom: 14px;
  }

  .foundation-specimen > strong {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .foundation-card-stage.is-word .foundation-specimen > strong, .foundation-card-stage.is-sentence .foundation-specimen > strong {
    font-size: clamp(2.45rem, 10vw, 4rem);
  }

  .foundation-specimen small {
    margin-top: 12px;
  }

  .foundation-form-desk {
    padding: 24px 20px;
  }

  .foundation-form-desk header p {
    margin-bottom: 20px;
  }

  .foundation-form-desk dl div {
    min-height: 60px;
  }

  .foundation-response {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .foundation-response > div:first-child p {
    font-size: .82rem;
  }

  .foundation-response .microphone-control {
    justify-self: center;
  }

  .foundation-ratings {
    grid-template-columns: repeat(2, 1fr);
  }

  .foundation-achievement {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 24px 20px;
  }

  .foundation-achievement-mark {
    width: 44px;
    height: 44px;
  }

  .foundation-achievement > a {
    grid-column: 1 / -1;
  }

  .foundation-card-nav {
    padding: 12px 20px max(12px, env(safe-area-inset-bottom));
    gap: 10px;
  }

  .foundation-card-nav button, .foundation-card-nav a {
    min-width: 100px;
    padding-inline: 12px;
  }

  .foundation-card-nav span {
    text-align: center;
  }

  .flashcard-decks {
    padding: 28px 16px calc(34px + var(--mobile-app-bar));
  }

  .flashcard-decks > header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }

  .flashcard-decks > header p {
    font-size: .78rem;
  }

  .flashcard-decks > header > span {
    font-size: .68rem;
  }

  .flashcard-deck-grid {
    grid-template-columns: 1fr;
  }

  .flashcard-deck-grid > button, .flashcard-deck-grid > button:first-child, .flashcard-deck-grid > button:nth-child(4) {
    grid-column: auto;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 116px;
    padding: 17px 15px;
  }

  .flashcard-deck-icon {
    width: 46px;
    height: 46px;
  }

  .flashcard-deck-icon svg {
    width: 23px;
    height: 23px;
  }

  .flashcard-deck-copy strong {
    font-size: 1.52rem;
  }

  .flashcard-deck-copy small {
    margin-top: 6px;
    font-size: .7rem;
  }

  .flashcard-deck-status {
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    gap: 6px;
  }

  .flashcard-deck-status b {
    font-size: .86rem;
  }

  .flashcard-desk {
    min-height: calc(var(--app-vh) - 210px);
    margin: 0;
    padding: 24px 20px 32px;
  }

  .flashcard-desk.is-immersive {
    padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
  }

  .flashcard-desk > header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .flashcard-desk.is-immersive > header {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 14px;
  }

  .flashcard-desk.is-immersive > header .flashcard-exit {
    grid-column: 1;
    justify-self: start;
    padding-inline: 10px;
  }

  .flashcard-desk.is-immersive > header > span {
    text-align: right;
    grid-column: 2;
  }

  .flashcard-desk.is-immersive > header .flashcard-card-navigation {
    grid-column: 1 / -1;
    width: 100%;
  }

  .flashcard-card-navigation {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .flashcard-card-navigation button {
    min-height: 48px;
  }

  .flashcard-face {
    grid-template-columns: 1fr;
  }

  .flashcard-face > strong {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .flashcard-face .audio-button-control {
    justify-self: center;
  }

  .flashcard-desk.is-immersive .flashcard-face {
    flex: 0 0 min(300px, 36dvh);
    gap: 12px;
    min-height: 0;
    padding: 18px 0 10px;
  }

  .flashcard-desk.is-immersive .flashcard-face > strong {
    font-size: clamp(2.7rem, 13vw, 4.5rem);
    line-height: 1.28;
  }

  .flashcard-desk.is-immersive .flashcard-face .audio-button-control {
    justify-content: flex-start;
    min-height: 104px;
  }

  .flashcard-desk.is-immersive .flashcard-face .lesson-audio-button {
    width: 76px;
    height: 76px;
  }

  .flashcard-desk.is-immersive .flashcard-face .lesson-audio-face {
    width: 60px;
    height: 60px;
  }

  .flashcard-desk.is-immersive .flashcard-reveal {
    z-index: 2;
    margin-top: auto;
    position: sticky;
    bottom: 31px;
  }

  .flashcard-desk.is-immersive .flashcard-answer {
    max-height: 23dvh;
    padding: 12px 0;
    overflow-y: auto;
  }

  .flashcard-desk.is-immersive .flashcard-answer p {
    font-size: 1.45rem;
  }

  .flashcard-desk.is-immersive .flashcard-ratings {
    margin-top: auto;
  }

  .flashcard-ratings {
    grid-template-columns: repeat(2, 1fr);
  }

  .flashcard-footer {
    display: none;
  }

  .onboarding-script-level {
    grid-template-columns: 1fr;
  }

  .dashboard-foundations {
    grid-template-columns: 70px minmax(0, 1fr);
    padding: 24px 20px;
  }

  .dashboard-foundations-actions {
    grid-column: 1 / -1;
  }

  .dashboard-foundations-actions a {
    text-align: center;
    flex: 1;
  }

  .curriculum-foundations-band {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 24px 20px;
  }

  .curriculum-foundations-band a {
    text-align: center;
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foundations-total i, .foundation-lesson-progress b, .dashboard-mobile-progress i {
    transition: none;
  }
}

.onboarding-workbench {
  min-height: calc(var(--app-vh) - 68px);
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  display: grid;
}

.onboarding-rail {
  background: var(--cobalt);
  color: var(--white);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(42px, 6vw, 88px) clamp(28px, 5vw, 74px);
  display: flex;
}

.onboarding-rail > div:first-child > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 800;
}

.onboarding-progress {
  background: #ffffff38;
  width: min(260px, 100%);
  height: 3px;
  margin-top: 13px;
  overflow: hidden;
}

.onboarding-progress i {
  background: var(--saffron);
  transform-origin: 0;
  width: 100%;
  height: 100%;
  transition: transform .32s cubic-bezier(.16, 1, .3, 1);
  display: block;
}

.onboarding-rail h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
  max-width: 8ch;
  margin: clamp(70px, 10vw, 140px) 0 0;
  font-size: clamp(3.8rem, 6vw, 6.6rem);
  font-weight: 600;
  line-height: .86;
}

.onboarding-rail > p {
  color: var(--cobalt-tint);
  max-width: 38ch;
  margin: 24px 0 auto;
  line-height: 1.6;
}

.onboarding-rail dl {
  border-top: 1px solid #ffffff59;
  margin: 54px 0 0;
}

.onboarding-rail dl > div {
  border-bottom: 1px solid #ffffff38;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  min-height: 50px;
  padding: 13px 0;
  display: flex;
}

.onboarding-rail dt {
  color: var(--cobalt-tint);
  text-transform: uppercase;
  font-size: .68rem;
}

.onboarding-rail dd {
  text-align: right;
  margin: 0;
  font-weight: 700;
}

.onboarding-stage {
  background: var(--ink);
  color: var(--white);
  align-items: center;
  min-width: 0;
  padding: clamp(38px, 7vw, 110px);
  display: grid;
  position: relative;
}

.onboarding-panel {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.onboarding-panel > header h2 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.2rem, 5.4vw, 5.8rem);
  font-weight: 600;
  line-height: .92;
}

.onboarding-panel > header p {
  color: var(--ink-tint);
  max-width: 58ch;
  margin: 20px 0 0;
  line-height: 1.6;
}

.onboarding-panel > footer {
  border-top: 1px solid #3c4650;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  display: flex;
}

.onboarding-panel > footer > button, .onboarding-panel > footer > a {
  background: var(--saffron);
  border: 1px solid var(--saffron);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  font-weight: 800;
  display: flex;
}

.onboarding-panel > footer > button:hover, .onboarding-panel > footer > a:hover {
  background: var(--saffron-pale);
}

.onboarding-panel > footer > button:disabled {
  cursor: wait;
  opacity: .65;
}

.onboarding-panel > footer .is-back, .onboarding-panel > footer .is-secondary {
  color: var(--white);
  background: none;
  border-color: #68727c;
  margin-right: auto;
}

.onboarding-panel > footer .is-back:hover, .onboarding-panel > footer .is-secondary:hover {
  background: #182129;
}

.onboarding-panel > footer > small {
  color: #aeb7bf;
  max-width: 34ch;
  margin-right: auto;
  font-size: .68rem;
  line-height: 1.45;
}

.onboarding-mode-options {
  border-bottom: 1px solid #3c4650;
  margin-top: 38px;
}

.onboarding-mode-options > button {
  color: var(--white);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #3c4650;
  grid-template-columns: minmax(150px, .55fr) minmax(220px, 1fr);
  align-items: center;
  gap: 8px 24px;
  width: 100%;
  min-height: 126px;
  padding: 22px 20px;
  display: grid;
}

.onboarding-mode-options > button:hover {
  background: #121a22;
}

.onboarding-mode-options > button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
}

.onboarding-mode-options > button > span {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.onboarding-mode-options > button > small {
  color: var(--ink-tint);
  line-height: 1.5;
}

.onboarding-mode-options > button[aria-pressed="true"] > small {
  color: #526077;
}

.onboarding-mode-options > button > b {
  color: var(--saffron);
  text-transform: uppercase;
  grid-column: 2;
  font-size: .67rem;
}

.onboarding-mode-options > button[aria-pressed="true"] > b {
  color: var(--cobalt);
}

.onboarding-choice-list {
  border-bottom: 1px solid #3c4650;
  margin-top: 34px;
}

.onboarding-choice-list > button {
  color: var(--white);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #3c4650;
  gap: 8px;
  width: 100%;
  min-height: 78px;
  padding: 15px 18px 15px 54px;
  display: grid;
  position: relative;
}

.onboarding-choice-list > button:before {
  content: "";
  border: 2px solid #6b7680;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  position: absolute;
  top: 29px;
  left: 18px;
}

.onboarding-choice-list > button[aria-checked="true"] {
  background: #131b22;
}

.onboarding-choice-list > button[aria-checked="true"]:before {
  background: var(--saffron);
  border-color: var(--saffron);
  box-shadow: inset 0 0 0 4px var(--ink);
}

.onboarding-choice-list span {
  font-weight: 800;
}

.onboarding-choice-list small {
  color: var(--ink-tint);
  line-height: 1.45;
}

.onboarding-location-fields, .onboarding-preferences {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  display: grid;
}

.onboarding-location-fields label, .onboarding-preferences label {
  color: var(--ink-tint);
  gap: 9px;
  font-size: .7rem;
  font-weight: 800;
  display: grid;
}

.onboarding-location-fields select, .onboarding-preferences select {
  appearance: none;
  color: var(--white);
  font: inherit;
  background: #171e25;
  border: 1px solid #5b6670;
  border-radius: 0;
  width: 100%;
  min-height: 56px;
  padding: 0 42px 0 14px;
  font-size: .86rem;
}

.onboarding-location-fields label, .onboarding-preferences label {
  position: relative;
}

.onboarding-location-fields label:after, .onboarding-preferences label:after {
  border-bottom: 2px solid var(--saffron);
  border-right: 2px solid var(--saffron);
  content: "";
  pointer-events: none;
  width: 7px;
  height: 7px;
  position: absolute;
  bottom: 23px;
  right: 18px;
  transform: rotate(45deg);
}

.placement-choice-actions {
  border-bottom: 1px solid #3c4650;
  margin-top: 38px;
}

.placement-choice-actions > button {
  color: var(--white);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #3c4650;
  gap: 7px;
  width: 100%;
  min-height: 92px;
  padding: 18px;
  display: grid;
}

.placement-choice-actions > button:first-child {
  background: var(--saffron);
  color: var(--ink);
}

.placement-choice-actions > button:hover {
  background: #182129;
}

.placement-choice-actions > button:first-child:hover {
  background: var(--saffron-pale);
}

.placement-choice-actions span {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
}

.placement-choice-actions small {
  color: inherit;
  opacity: .72;
}

.onboarding-question > header > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 800;
  display: block;
}

.placement-prompt {
  border-top: 1px solid #3c4650;
  border-bottom: 1px solid #3c4650;
  align-items: center;
  min-height: 166px;
  margin-top: 34px;
  padding: 22px 0;
  display: grid;
}

.placement-prompt > p {
  font-family: var(--font-arabic);
  text-align: center;
  margin: 0;
  font-size: clamp(2.3rem, 4.3vw, 4.6rem);
  line-height: 1.45;
}

.placement-audio {
  color: var(--saffron);
  cursor: pointer;
  background: none;
  border: 0;
  place-items: center;
  gap: 8px;
  margin: 0 auto;
  display: grid;
}

.placement-audio svg {
  width: 62px;
  height: 62px;
}

.placement-audio span {
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .9rem;
  font-weight: 800;
}

.placement-answers {
  border-bottom: 1px solid #3c4650;
}

.placement-answers > button {
  color: var(--white);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #3c4650;
  width: 100%;
  min-height: 62px;
  padding: 12px 18px;
  font-size: 1rem;
}

.placement-answers > button[dir="rtl"] {
  font-family: var(--font-arabic);
  text-align: right;
  font-size: 1.45rem;
}

.placement-answers > button:hover, .placement-answers > button[aria-checked="true"] {
  background: var(--white);
  color: var(--ink);
}

.placement-result-unit {
  border-top: 1px solid #3c4650;
  border-bottom: 1px solid #3c4650;
  grid-template-columns: minmax(120px, .6fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 190px;
  margin-top: 38px;
  padding: 26px 0;
  display: grid;
}

.placement-result-unit > span {
  color: var(--saffron);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 800;
}

.placement-result-unit > strong {
  color: var(--saffron);
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 600;
  line-height: .72;
}

.placement-result-unit > div {
  gap: 7px;
  display: grid;
}

.placement-result-unit b {
  font-family: var(--font-display);
  font-size: 1.85rem;
}

.placement-result-unit small {
  color: var(--ink-tint);
}

.placement-result-note {
  color: var(--ink-tint);
  margin: 22px 0 0;
  line-height: 1.55;
}

.onboarding-error {
  color: var(--white);
  background: #79241d;
  max-width: calc(100% - clamp(40px, 10vw, 144px));
  margin: 0;
  padding: 13px 16px;
  position: absolute;
  bottom: 18px;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
}

.onboarding-state {
  background: var(--cobalt);
  color: var(--white);
  min-height: calc(var(--app-vh) - 68px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(50px, 10vw, 140px);
  display: flex;
}

.onboarding-state h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 600;
  line-height: .88;
}

.onboarding-state p {
  color: var(--cobalt-tint);
  margin: 26px 0 0;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .onboarding-workbench {
    grid-template-columns: 1fr;
  }

  .onboarding-rail {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 28px clamp(20px, 6vw, 54px);
    display: grid;
  }

  .onboarding-rail h1 {
    grid-column: 1;
    max-width: 11ch;
    margin: 28px 0 0;
    font-size: clamp(3rem, 8vw, 4.5rem);
  }

  .onboarding-rail > p {
    grid-column: 1;
    margin: 0;
  }

  .onboarding-rail dl {
    grid-area: 1 / 2 / 4;
    min-width: 220px;
    margin: 0;
  }

  .onboarding-stage {
    min-height: 720px;
    padding: 64px clamp(24px, 7vw, 64px);
  }
}

@media (max-width: 620px) {
  .onboarding-rail {
    padding: 24px 20px 28px;
    display: block;
  }

  .onboarding-rail h1 {
    margin-top: 34px;
    font-size: 3.35rem;
  }

  .onboarding-rail > p {
    margin-top: 16px;
    font-size: .82rem;
  }

  .onboarding-rail dl {
    display: none;
  }

  .onboarding-stage {
    align-items: start;
    min-height: 620px;
    padding: 46px 20px 72px;
  }

  .onboarding-panel > header h2 {
    font-size: 3.1rem;
  }

  .onboarding-mode-options > button {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    min-height: 148px;
    padding: 20px 16px;
  }

  .onboarding-mode-options > button > b {
    grid-column: 1;
  }

  .onboarding-location-fields, .onboarding-preferences {
    grid-template-columns: 1fr;
  }

  .onboarding-panel > footer {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .onboarding-panel > footer > button, .onboarding-panel > footer > a {
    flex: 100%;
    width: 100%;
  }

  .onboarding-panel > footer .is-back, .onboarding-panel > footer .is-secondary {
    order: 2;
  }

  .onboarding-panel > footer > small {
    flex: 100%;
  }

  .placement-prompt {
    min-height: 140px;
  }

  .placement-prompt > p {
    font-size: 2.5rem;
  }

  .placement-answers > button {
    min-height: 68px;
  }

  .placement-result-unit {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 12px;
  }

  .placement-result-unit > span {
    grid-column: 1 / -1;
  }

  .placement-result-unit > strong {
    font-size: 6.5rem;
  }

  .placement-result-unit b {
    font-size: 1.5rem;
  }

  .onboarding-error {
    max-width: none;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-progress i {
    transition: none;
  }
}

.admin-revenue {
  border-top: 8px solid var(--cobalt);
  color: var(--ink);
  background: #f2f0e9;
  padding: 42px clamp(20px, 4vw, 60px) 54px;
  scroll-margin-top: 68px;
}

.admin-revenue-header {
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  display: flex;
}

.admin-revenue-header > div:first-child > span {
  color: var(--cobalt);
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .66rem;
  font-weight: 800;
}

.admin-revenue-header h2 {
  font-family: var(--font-display);
  letter-spacing: -.025em;
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  line-height: .9;
}

.admin-revenue-header p {
  color: #5f6872;
  margin: 10px 0 0;
  font-size: .72rem;
  line-height: 1.5;
}

.admin-revenue-safety {
  border-left: 4px solid var(--success);
  gap: 3px;
  max-width: 340px;
  padding: 8px 0 8px 14px;
  display: grid;
}

.admin-revenue-safety strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .8rem;
}

.admin-revenue-safety small {
  color: #657080;
  font-size: .58rem;
  line-height: 1.4;
}

.admin-revenue-goal {
  background: var(--ink);
  color: var(--white);
  grid-template-columns: minmax(260px, .8fr) minmax(300px, 1.15fr) minmax(240px, .85fr);
  margin-top: 26px;
  display: grid;
}

.admin-revenue-target, .admin-revenue-progress, .admin-revenue-economics {
  min-width: 0;
  padding: 26px;
}

.admin-revenue-target {
  border-right: 1px solid #4d5862;
}

.admin-revenue-target > span, .admin-revenue-progress header span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 800;
}

.admin-revenue-target > strong {
  font-family: var(--font-display);
  letter-spacing: -.035em;
  margin-top: 13px;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  font-weight: 600;
  line-height: .9;
  display: block;
}

.admin-revenue-target > strong small {
  color: var(--ink-tint);
  letter-spacing: 0;
  font-size: .8rem;
}

.admin-revenue-target p {
  color: var(--ink-tint);
  max-width: 34ch;
  margin: 13px 0 0;
  font-size: .6rem;
  line-height: 1.5;
}

.admin-revenue-progress {
  border-right: 1px solid #4d5862;
  align-content: center;
  display: grid;
}

.admin-revenue-progress header {
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  display: flex;
}

.admin-revenue-progress header strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.admin-revenue-progress > div {
  background: #414b54;
  height: 14px;
  margin-top: 24px;
  overflow: hidden;
}

.admin-revenue-progress > div i {
  background: linear-gradient(90deg, var(--cobalt), var(--saffron));
  min-width: 2px;
  height: 100%;
  display: block;
}

.admin-revenue-progress footer {
  color: var(--ink-tint);
  justify-content: space-between;
  margin-top: 9px;
  font-size: .58rem;
  display: flex;
}

.admin-revenue-economics {
  gap: 14px;
  margin: 0;
  display: grid;
}

.admin-revenue-economics > div {
  border-bottom: 1px solid #4d5862;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding-bottom: 12px;
  display: grid;
}

.admin-revenue-economics > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-revenue-economics dt {
  color: var(--ink-tint);
  font-size: .58rem;
}

.admin-revenue-economics dd {
  color: var(--saffron);
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.admin-revenue-economics small {
  color: #9ea8b0;
  grid-column: 1 / -1;
  font-size: .52rem;
}

.admin-revenue-unavailable {
  color: #5d4c27;
  border: 1px solid #a27312;
  margin-top: 16px;
  padding: 20px;
}

.admin-revenue-unavailable strong {
  font-family: var(--font-display);
}

.admin-revenue-unavailable p {
  margin: 5px 0 0;
  font-size: .65rem;
}

.admin-revenue-agents {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
  display: grid;
}

.admin-revenue-agents article {
  background: var(--white);
  border: 1px solid var(--line-light);
  flex-direction: column;
  min-height: 218px;
  padding: 18px;
  display: flex;
}

.admin-revenue-agents article + article {
  border-left: 0;
}

.admin-revenue-agents article.is-chief {
  background: var(--cobalt);
  color: var(--white);
}

.admin-revenue-agents article > header {
  align-items: center;
  gap: 10px;
  display: flex;
}

.admin-revenue-agents article > header > span {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: .62rem;
  font-weight: 800;
  display: flex;
}

.admin-revenue-agents article.is-chief > header > span {
  background: var(--saffron);
  color: var(--ink);
}

.admin-revenue-agents h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: .92rem;
}

.admin-revenue-agents header small {
  color: #707b87;
  margin-top: 2px;
  font-size: .48rem;
  display: block;
}

.admin-revenue-agents article.is-chief header small {
  color: var(--cobalt-tint);
}

.admin-revenue-agents article > p {
  color: #5f6974;
  margin: 18px 0;
  font-size: .59rem;
  line-height: 1.5;
}

.admin-revenue-agents article.is-chief > p {
  color: var(--cobalt-tint);
}

.admin-revenue-agents article > footer {
  border-top: 1px solid var(--line-light);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
}

.admin-revenue-agents article.is-chief > footer {
  border-color: #ffffff40;
}

.admin-revenue-agents footer > span {
  color: #7a8490;
  font-size: .5rem;
}

.admin-revenue-agents article.is-chief footer > span {
  color: var(--cobalt-tint);
}

.admin-revenue-agents button {
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  border: 0;
  min-height: 34px;
  padding: 8px 11px;
  font-size: .57rem;
  font-weight: 800;
}

.admin-revenue-agents article.is-chief button {
  background: var(--saffron);
  color: var(--ink);
}

.admin-revenue-agents button:hover {
  background: var(--cobalt);
}

.admin-revenue-agents article.is-chief button:hover {
  background: var(--white);
}

.admin-revenue-agents button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.admin-revenue-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  gap: 16px;
  margin-top: 16px;
  display: grid;
}

.admin-revenue-grid > section, .admin-revenue-queue, .admin-revenue-measurement {
  background: var(--white);
  min-width: 0;
  padding: 24px;
}

.admin-revenue-grid section > header, .admin-revenue-queue > header, .admin-revenue-measurement > header {
  border-bottom: 1px solid var(--line-light);
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding-bottom: 13px;
  display: flex;
}

.admin-revenue-grid h3, .admin-revenue-queue h3, .admin-revenue-measurement h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.35rem;
}

.admin-revenue-grid header p, .admin-revenue-queue header p, .admin-revenue-measurement header p {
  color: #657080;
  margin: 4px 0 0;
  font-size: .6rem;
  line-height: 1.4;
}

.admin-revenue-grid header > span, .admin-revenue-queue header > span, .admin-revenue-measurement header > span {
  color: var(--cobalt);
  font-size: .58rem;
  font-weight: 800;
}

.admin-revenue-scorecard > dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 0;
  display: grid;
}

.admin-revenue-scorecard > dl > div {
  border: 1px solid var(--line-light);
  min-height: 112px;
  padding: 13px;
}

.admin-revenue-scorecard > dl > div:nth-child(n+2) {
  border-left: 0;
}

.admin-revenue-scorecard > dl > div:nth-child(4) {
  border-left: 1px solid var(--line-light);
}

.admin-revenue-scorecard > dl > div:nth-child(n+4) {
  border-top: 0;
}

.admin-revenue-scorecard dt {
  color: #657080;
  font-size: .55rem;
  line-height: 1.35;
}

.admin-revenue-scorecard dd {
  color: var(--cobalt);
  font-family: var(--font-display);
  margin: 12px 0 0;
  font-size: 1.55rem;
  font-weight: 800;
}

.admin-revenue-scorecard small {
  color: #6c7682;
  margin-top: 6px;
  font-size: .5rem;
  display: block;
}

.admin-revenue-scorecard .is-pass small {
  color: #28754f;
}

.admin-revenue-scorecard .is-action small {
  color: #9c5a05;
}

.admin-revenue-facts {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  display: flex;
}

.admin-revenue-facts span {
  background: var(--paper);
  color: #485564;
  padding: 8px 10px;
  font-size: .54rem;
}

.admin-revenue-scorecard details, .admin-revenue-opportunities details {
  border-top: 1px solid var(--line-light);
  margin-top: 16px;
  padding-top: 12px;
}

.admin-revenue-scorecard summary, .admin-revenue-opportunities summary {
  color: var(--cobalt);
  cursor: pointer;
  font-size: .58rem;
  font-weight: 800;
}

.admin-revenue-scorecard details ul, .admin-revenue-opportunities details ul {
  color: #5d6875;
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: .56rem;
  line-height: 1.5;
}

.admin-revenue-runs > ol {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.admin-revenue-runs > ol > li {
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 0;
  display: grid;
}

.admin-revenue-runs li > span {
  background: #b9c0c8;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-top: 4px;
}

.admin-revenue-runs li > span.is-completed {
  background: var(--success);
}

.admin-revenue-runs li > span.is-failed {
  background: #a63a2d;
}

.admin-revenue-runs li strong {
  font-size: .62rem;
  display: block;
}

.admin-revenue-runs li div small {
  color: #657080;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 3px;
  font-size: .52rem;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}

.admin-revenue-runs li aside {
  color: #737e89;
  text-align: right;
  justify-items: end;
  gap: 3px;
  font-size: .48rem;
  display: grid;
}

.admin-revenue-empty {
  color: #657080;
  padding: 26px 0 6px;
}

.admin-revenue-empty strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.admin-revenue-empty p {
  margin: 5px 0 0;
  font-size: .6rem;
  line-height: 1.45;
}

.admin-revenue-measurement {
  margin-top: 16px;
}

.admin-revenue-measurement-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  display: grid;
}

.admin-revenue-measurement-cards article {
  border: 1px solid var(--line-light);
  min-height: 132px;
  padding: 16px;
}

.admin-revenue-measurement-cards article + article {
  border-left: 0;
}

.admin-revenue-measurement-cards span {
  color: #657080;
  font-size: .54rem;
  display: block;
}

.admin-revenue-measurement-cards strong {
  color: var(--cobalt);
  font-family: var(--font-display);
  margin-top: 12px;
  font-size: 1.8rem;
  display: block;
}

.admin-revenue-measurement-cards p {
  color: #657080;
  margin: 7px 0 0;
  font-size: .53rem;
  line-height: 1.5;
}

.admin-revenue-contract {
  border-bottom: 1px solid var(--line-light);
  padding: 13px 0;
}

.admin-revenue-contract summary {
  color: var(--cobalt);
  cursor: pointer;
  font-size: .58rem;
  font-weight: 800;
}

.admin-revenue-contract p {
  color: #5d6875;
  margin: 9px 0 0;
  font-size: .56rem;
  line-height: 1.5;
}

.admin-revenue-measurement-tables {
  gap: 22px;
  margin-top: 18px;
  display: grid;
}

.admin-revenue-measurement-tables h4 {
  font-family: var(--font-display);
  margin: 0 0 9px;
  font-size: .82rem;
}

.admin-revenue-table-scroll {
  overflow-x: auto;
}

.admin-revenue-measurement table {
  border-collapse: collapse;
  width: 100%;
  min-width: 820px;
  font-size: .51rem;
}

.admin-revenue-measurement th, .admin-revenue-measurement td {
  border-bottom: 1px solid var(--line-light);
  text-align: right;
  white-space: nowrap;
  padding: 9px 8px;
}

.admin-revenue-measurement th:first-child {
  text-align: left;
}

.admin-revenue-measurement thead th {
  color: #687480;
  font-weight: 700;
}

.admin-revenue-measurement tbody th {
  color: var(--ink);
  font-weight: 800;
}

.admin-revenue-measurement tbody th span {
  color: #7a8590;
  text-transform: uppercase;
  font-size: .44rem;
  font-weight: 500;
  display: block;
}

.admin-revenue-queue {
  margin-top: 16px;
}

.admin-revenue-opportunities {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  display: grid;
}

.admin-revenue-opportunities > article {
  border: 1px solid var(--line-light);
  flex-direction: column;
  min-height: 360px;
  padding: 18px;
  display: flex;
}

.admin-revenue-opportunities > article.is-approved {
  border-top: 4px solid var(--success);
}

.admin-revenue-opportunities > article.is-rejected, .admin-revenue-opportunities > article.is-canceled {
  opacity: .66;
}

.admin-revenue-opportunities article > header {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.admin-revenue-opportunities article > header > div {
  flex-wrap: wrap;
  gap: 5px;
  display: flex;
}

.admin-revenue-opportunities article > header span {
  background: var(--paper);
  color: #586472;
  text-transform: uppercase;
  padding: 5px 7px;
  font-size: .48rem;
  font-weight: 800;
}

.admin-revenue-opportunities article > header span.is-high {
  color: #8f2e21;
  background: #ffe3dd;
}

.admin-revenue-opportunities article > header span.is-medium {
  color: #775306;
  background: #fff0c8;
}

.admin-revenue-opportunities article > header span.is-low {
  color: #256344;
  background: #dff4e9;
}

.admin-revenue-opportunities article > header em {
  color: var(--cobalt);
  text-transform: uppercase;
  font-size: .48rem;
  font-style: normal;
  font-weight: 800;
}

.admin-revenue-opportunities h4 {
  font-family: var(--font-display);
  margin: 20px 0 0;
  font-size: 1.25rem;
  line-height: 1.05;
}

.admin-revenue-opportunities article > p {
  color: #5d6875;
  margin: 10px 0 0;
  font-size: .59rem;
  line-height: 1.5;
}

.admin-revenue-opportunities article > dl {
  border-top: 1px solid var(--line-light);
  margin: 18px 0 0;
}

.admin-revenue-opportunities article > dl > div {
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  display: grid;
}

.admin-revenue-opportunities dt {
  color: #727c87;
  font-size: .5rem;
}

.admin-revenue-opportunities dd {
  margin: 0;
  font-size: .55rem;
  line-height: 1.4;
}

.admin-revenue-opportunities details p {
  color: #5d6875;
  font-size: .56rem;
  line-height: 1.5;
}

.admin-revenue-opportunities details > strong {
  margin-top: 10px;
  font-size: .54rem;
  display: block;
}

.admin-revenue-opportunities article > footer {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
}

.admin-revenue-opportunities footer button {
  border: 1px solid var(--ink);
  cursor: pointer;
  font: inherit;
  min-height: 38px;
  padding: 8px 12px;
  font-size: .55rem;
  font-weight: 800;
}

.admin-revenue-opportunities footer button.is-reject {
  color: var(--ink);
  background: none;
}

.admin-revenue-opportunities footer button.is-approve {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.admin-revenue-opportunities footer button:disabled {
  cursor: wait;
  opacity: .55;
}

.admin-revenue-opportunities footer small {
  color: #727c87;
  margin-right: auto;
  font-size: .52rem;
}

.admin-revenue-opportunities footer > strong {
  color: #28754f;
  font-size: .5rem;
}

.admin-revenue-notice {
  background: var(--ink);
  color: var(--white);
  z-index: 90;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: max-content;
  max-width: min(680px, 100% - 36px);
  padding: 13px 16px;
  display: flex;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.admin-revenue-notice.is-error {
  background: #7e291f;
}

.admin-revenue-notice p {
  margin: 0;
  font-size: .62rem;
}

.admin-revenue-notice button {
  color: inherit;
  cursor: pointer;
  font: inherit;
  background: none;
  border: 1px solid;
  padding: 6px 8px;
  font-size: .54rem;
}

.admin-revenue-loading, .admin-revenue-error {
  min-height: 180px;
}

.admin-revenue-loading strong, .admin-revenue-error strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.admin-revenue-loading p, .admin-revenue-error p {
  color: #657080;
  font-size: .65rem;
}

.admin-revenue-error button {
  background: var(--cobalt);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  border: 0;
  padding: 10px 14px;
  font-size: .6rem;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .admin-revenue-goal {
    grid-template-columns: 1fr 1fr;
  }

  .admin-revenue-progress {
    border-right: 0;
  }

  .admin-revenue-economics {
    border-top: 1px solid #4d5862;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-revenue-economics > div {
    border-bottom: 0;
    border-right: 1px solid #4d5862;
    padding: 0 14px 0 0;
  }

  .admin-revenue-economics > div:last-child {
    border-right: 0;
  }

  .admin-revenue-agents {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-revenue-agents article:nth-child(4) {
    border-left: 1px solid var(--line-light);
  }

  .admin-revenue-agents article:nth-child(n+4) {
    border-top: 0;
  }

  .admin-revenue-opportunities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-revenue-measurement-cards {
    grid-template-columns: 1fr 1fr;
  }

  .admin-revenue-measurement-cards article:nth-child(3) {
    border-left: 1px solid var(--line-light);
    border-top: 0;
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .admin-revenue {
    scroll-margin-top: 128px;
  }

  .admin-revenue-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-revenue-grid {
    grid-template-columns: 1fr;
  }

  .admin-revenue-agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-revenue-agents article:nth-child(3), .admin-revenue-agents article:nth-child(5) {
    border-left: 1px solid var(--line-light);
  }

  .admin-revenue-agents article:nth-child(n+3) {
    border-top: 0;
  }

  .admin-revenue-scorecard > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-revenue-scorecard > dl > div:nth-child(odd) {
    border-left: 1px solid var(--line-light);
  }

  .admin-revenue-scorecard > dl > div:nth-child(n+3) {
    border-top: 0;
  }
}

@media (max-width: 580px) {
  .admin-revenue {
    padding: 30px 18px 38px;
  }

  .admin-revenue-goal {
    grid-template-columns: 1fr;
  }

  .admin-revenue-target {
    border-bottom: 1px solid #4d5862;
    border-right: 0;
  }

  .admin-revenue-progress {
    border-bottom: 1px solid #4d5862;
  }

  .admin-revenue-economics {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .admin-revenue-economics > div {
    border-bottom: 1px solid #4d5862;
    border-right: 0;
    padding: 0 0 12px;
  }

  .admin-revenue-agents {
    grid-template-columns: 1fr;
  }

  .admin-revenue-agents article + article {
    border-left: 1px solid var(--line-light);
    border-top: 0;
  }

  .admin-revenue-grid > section, .admin-revenue-queue {
    padding: 18px;
  }

  .admin-revenue-grid section > header, .admin-revenue-queue > header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-revenue-scorecard > dl {
    grid-template-columns: 1fr;
  }

  .admin-revenue-scorecard > dl > div {
    border-left: 1px solid var(--line-light);
    border-top: 0;
  }

  .admin-revenue-scorecard > dl > div:first-child {
    border-top: 1px solid var(--line-light);
  }

  .admin-revenue-opportunities, .admin-revenue-measurement-cards {
    grid-template-columns: 1fr;
  }

  .admin-revenue-measurement-cards article + article, .admin-revenue-measurement-cards article:nth-child(3) {
    border-left: 1px solid var(--line-light);
    border-top: 0;
    grid-column: auto;
  }

  .admin-revenue-measurement > header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-revenue-runs > ol > li {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .admin-revenue-runs li aside {
    text-align: left;
    grid-column: 2;
    justify-items: start;
  }

  .admin-revenue-notice {
    width: calc(100% - 36px);
  }
}

.admin-email-test {
  background: var(--ink);
  color: var(--white);
  padding: 40px clamp(20px, 4vw, 60px) 46px;
  scroll-margin-top: 68px;
}

.admin-email-test > header {
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  display: flex;
}

.admin-email-test > header > div:first-child > span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .66rem;
  font-weight: 800;
}

.admin-email-test h2 {
  font-family: var(--font-display);
  letter-spacing: -.025em;
  margin: 8px 0 0;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: .95;
}

.admin-email-test header p {
  color: var(--ink-tint);
  margin: 10px 0 0;
  font-size: .7rem;
  line-height: 1.5;
}

.admin-email-safety {
  border-left: 4px solid var(--success);
  gap: 4px;
  max-width: 360px;
  padding: 8px 0 8px 14px;
  display: grid;
}

.admin-email-safety strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .8rem;
}

.admin-email-safety small {
  color: var(--ink-tint);
  font-size: .58rem;
  line-height: 1.4;
}

.admin-email-test-grid {
  background: var(--white);
  color: var(--ink);
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  margin-top: 24px;
  display: grid;
}

.admin-email-test-grid dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  display: grid;
}

.admin-email-test-grid dl > div {
  border-bottom: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  min-width: 0;
  padding: 18px;
}

.admin-email-test-grid dt {
  color: #657080;
  font-size: .55rem;
}

.admin-email-test-grid dd {
  font-family: var(--font-display);
  overflow-wrap: anywhere;
  margin: 7px 0 0;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-email-action {
  background: #f2f0e9;
  align-content: center;
  padding: 24px;
  display: grid;
}

.admin-email-action p {
  color: #5f6974;
  margin: 0 0 16px;
  font-size: .6rem;
  line-height: 1.55;
}

.admin-email-action button {
  background: var(--cobalt);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  border: 0;
  min-height: 44px;
  padding: 11px 16px;
  font-size: .65rem;
  font-weight: 800;
}

.admin-email-action button:hover {
  background: #062ca5;
}

.admin-email-action button:disabled {
  cursor: wait;
  opacity: .55;
}

.admin-email-result {
  border-left: 5px solid;
  margin-top: 16px;
  padding: 16px 18px;
}

.admin-email-result.is-success {
  color: #205b3f;
  background: #def4e8;
}

.admin-email-result.is-warning {
  color: #694b08;
  background: #fff0c8;
}

.admin-email-result.is-error {
  color: #79291f;
  background: #ffe3dd;
}

.admin-email-result strong {
  font-family: var(--font-display);
  font-size: .78rem;
}

.admin-email-result p {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  font-size: .62rem;
  line-height: 1.45;
}

.admin-email-result small {
  margin-top: 7px;
  font-size: .55rem;
  line-height: 1.45;
  display: block;
}

.admin-email-campaign {
  border-top: 1px solid #4d5862;
  margin-top: 36px;
  padding-top: 32px;
}

.admin-email-campaign > header {
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  display: flex;
}

.admin-email-campaign > header span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .58rem;
  font-weight: 800;
}

.admin-email-campaign h3 {
  font-family: var(--font-display);
  margin: 7px 0 0;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1;
}

.admin-email-campaign > header p {
  max-width: 680px;
}

.admin-email-refresh {
  color: var(--white);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 1px solid #6d7781;
  flex: none;
  min-height: 42px;
  padding: 10px 14px;
  font-size: .6rem;
  font-weight: 800;
}

.admin-email-refresh:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.admin-email-campaign-grid {
  background: var(--white);
  color: var(--ink);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  margin-top: 20px;
  display: grid;
}

.admin-email-campaign-grid dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  display: grid;
}

.admin-email-campaign-grid dl > div {
  border-bottom: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  padding: 16px;
}

.admin-email-campaign-grid dt, .admin-email-copy-review small {
  color: #657080;
  font-size: .54rem;
}

.admin-email-campaign-grid dd {
  font-family: var(--font-display);
  margin: 5px 0 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.admin-email-copy-review {
  background: #f2f0e9;
  align-content: center;
  padding: 24px;
  display: grid;
}

.admin-email-copy-review strong {
  font-family: var(--font-display);
  margin-top: 6px;
  font-size: .78rem;
  line-height: 1.35;
}

.admin-email-copy-review p {
  color: #5f6974;
  margin: 12px 0;
  font-size: .6rem;
  line-height: 1.55;
}

.admin-email-copy-review a {
  color: var(--cobalt);
  font-size: .6rem;
  font-weight: 800;
}

.admin-email-campaign-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  display: flex;
}

.admin-email-campaign-actions button {
  color: var(--white);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 1px solid #6d7781;
  min-height: 44px;
  padding: 11px 16px;
  font-size: .62rem;
  font-weight: 800;
}

.admin-email-campaign-actions button.is-release {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.admin-email-campaign-actions button:hover {
  border-color: var(--saffron);
}

.admin-email-campaign-actions button:disabled, .admin-email-refresh:disabled {
  cursor: wait;
  opacity: .55;
}

.admin-email-loading {
  color: var(--ink-tint);
  margin: 20px 0 0;
  font-size: .65rem;
}

@media (max-width: 820px) {
  .admin-email-test {
    scroll-margin-top: 128px;
  }

  .admin-email-test > header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-email-test-grid {
    grid-template-columns: 1fr;
  }

  .admin-email-campaign > header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-email-campaign-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .admin-email-test {
    padding: 30px 18px 36px;
  }

  .admin-email-test-grid dl {
    grid-template-columns: 1fr;
  }

  .admin-email-test-grid dl > div {
    border-right: 0;
  }

  .admin-email-campaign-grid dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-email-campaign-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 680px) {
  .vocabulary-app-header {
    gap: 6px 10px;
    padding-bottom: 8px;
  }

  .vocabulary-app-header .flashcard-exit {
    min-height: 38px;
    padding: 6px 8px;
    font-size: .68rem;
  }

  .vocabulary-app-header .vocabulary-app-source {
    font-size: .64rem;
    line-height: 1.2;
  }

  .vocabulary-app-header .flashcard-card-navigation {
    gap: 6px;
  }

  .vocabulary-app-header .flashcard-card-navigation button {
    min-height: 40px;
    padding: 6px 8px;
    font-size: .68rem;
  }

  .vocabulary-app-header .flashcard-card-navigation strong {
    min-width: 52px;
    font-size: .68rem;
  }

  .vocabulary-app-word-face {
    flex-basis: min(270px, 40dvh);
    row-gap: 2px;
    padding: 8px 10px 7px;
    overflow: hidden;
  }

  .vocabulary-app-word-face .practice-arabic-focus {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.5vw, 3.5rem);
    line-height: 1.32;
  }

  .vocabulary-app-word-face .lesson-audio-button {
    width: 58px;
    height: 58px;
  }

  .vocabulary-app-word-face .lesson-audio-face {
    width: 46px;
    height: 46px;
  }

  .vocabulary-app-recall {
    gap: 14px;
    padding: 12px 16px;
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  .vocabulary-app-shell {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .vocabulary-app-word-face {
    flex-basis: min(238px, 38dvh);
  }

  .vocabulary-app-word-face .practice-arabic-focus {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .vocabulary-app-word-face .lesson-audio-label {
    margin-top: 1px;
  }

  .vocabulary-app-recall h1 {
    font-size: 1.45rem;
  }

  .vocabulary-app-recall .flashcard-reveal {
    min-height: 54px;
  }
}

@media (max-width: 900px) {
  body:has(.admin-shell) {
    overflow-x: hidden;
  }

  .admin-shell {
    max-width: 100vw;
    scroll-padding-top: 132px;
    overflow-x: clip;
  }

  .admin-work-queue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-queue-group {
    min-width: 0;
  }

  .admin-race-grid, .admin-revenue-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-race-table-wrap, .admin-revenue-table-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 680px) {
  .admin-masthead {
    width: 100%;
  }

  .admin-masthead > div {
    gap: 6px;
  }

  .admin-masthead button, .admin-account-actions button, .admin-account-actions a, .admin-learning-map header a, .admin-race-controls button, .admin-registry button, .admin-revenue button, .admin-email-test button {
    touch-action: manipulation;
    min-height: 44px;
  }

  .admin-health {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  .admin-health > span, .admin-health dt {
    font-size: .7rem;
  }

  .admin-section-rail {
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    grid-template-columns: none;
    grid-auto-columns: 88px;
    grid-auto-flow: column;
  }

  .admin-section-rail a {
    scroll-snap-align: start;
    white-space: nowrap;
    min-height: 58px;
    font-size: .75rem;
  }

  .admin-work-queue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .admin-work-queue > header {
    grid-column: 1 / -1;
  }

  .admin-queue-group {
    overscroll-behavior: contain;
    max-height: 290px;
    overflow-y: auto;
  }

  .admin-queue-group:nth-of-type(odd) {
    border-right: 1px solid var(--line-light);
  }

  .admin-queue-group li button {
    touch-action: manipulation;
    min-height: 52px;
  }

  .admin-account-header, .admin-learning-map, .admin-account-ledgers > section, .admin-race, .admin-registry, .admin-revenue, .admin-email-test {
    scroll-margin-top: calc(128px + env(safe-area-inset-top));
  }

  .admin-account-actions button, .admin-account-actions a {
    padding-inline: 10px;
  }

  .admin-account-facts strong {
    font-size: .88rem;
  }

  .admin-account-facts small, .admin-learning-map header p, .admin-usage-list small, .admin-event-list small, .admin-registry td, .admin-race p, .admin-revenue p {
    font-size: max(.68rem, 11px);
  }

  .admin-learning-map {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  .admin-learning-map ol {
    scroll-snap-type: inline proximity;
  }

  .admin-learning-map ol li {
    scroll-snap-align: start;
  }

  .admin-race-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    display: grid;
  }

  .admin-race-controls button {
    font-size: .72rem;
  }

  .admin-race-stages {
    gap: 10px;
  }

  .admin-race-stage {
    border: 1px solid #4b555f;
  }

  .admin-race-stage + .admin-race-stage, .admin-race-stage:nth-child(3) {
    border-left: 1px solid #4b555f;
  }

  .admin-race-stage:nth-child(n+3) {
    border-top: 1px solid #4b555f;
  }

  .admin-race-funnel {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
  }

  .admin-race-funnel li {
    scroll-snap-align: start;
  }

  .admin-race-table-wrap, .admin-revenue-table-scroll {
    background: linear-gradient(to right, var(--white) 30%, transparent), linear-gradient(to left, var(--white) 30%, transparent), linear-gradient(to right, #141e2a24, transparent 18px), linear-gradient(to left, #141e2a24, transparent 18px);
    background-position: 0, 100%, 0, 100%;
    background-repeat: no-repeat;
    background-size: 42px 100%, 42px 100%, 18px 100%, 18px 100%;
    background-attachment: local, local, scroll, scroll;
  }

  .admin-race-sources table th:first-child, .admin-race-sources table td:first-child, .admin-revenue-measurement table th:first-child {
    background: var(--white);
    box-shadow: 1px 0 var(--line-light);
    z-index: 2;
    position: sticky;
    left: 0;
  }

  .admin-race-sources table thead th:first-child, .admin-revenue-measurement table thead th:first-child {
    background: var(--paper);
    z-index: 3;
  }

  .admin-registry-controls input, .admin-registry-controls select {
    min-height: 46px;
    font-size: 16px;
  }

  .admin-registry tr {
    border-radius: 2px;
  }

  .admin-registry td {
    gap: 16px;
  }

  .admin-revenue-header {
    gap: 14px;
  }

  .admin-revenue-goal {
    margin-top: 18px;
  }

  .admin-revenue-target, .admin-revenue-progress, .admin-revenue-economics {
    padding: 20px;
  }

  .admin-revenue-agents article, .admin-revenue-opportunities > article {
    min-height: 0;
  }

  .admin-revenue-agents button, .admin-revenue-opportunities footer button, .admin-revenue-error button {
    min-height: 44px;
    font-size: .68rem;
  }

  .admin-revenue-scorecard dt, .admin-revenue-measurement-cards span, .admin-revenue-opportunities dt, .admin-revenue-runs li div small, .admin-revenue-runs li aside, .admin-revenue-contract p {
    font-size: max(.65rem, 10px);
  }

  .admin-revenue-opportunities article > footer {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .admin-revenue-opportunities footer button {
    flex: 120px;
  }

  .admin-revenue-notice {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 460px) {
  .admin-masthead {
    padding-inline: max(12px, env(safe-area-inset-left));
  }

  .admin-wordmark {
    --wordmark-height: 23px;
  }

  .admin-masthead button {
    padding-inline: 10px;
    font-size: .68rem;
  }

  .admin-health {
    padding-inline: 12px;
  }

  .admin-work-queue {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-work-queue > header {
    grid-column: auto;
  }

  .admin-queue-group {
    max-height: 260px;
    border-right: 0 !important;
  }

  .admin-account-header {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-inline: 14px;
  }

  .admin-account-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-account-actions .is-primary, .admin-account-actions .is-danger {
    grid-column: auto;
  }

  .admin-account-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-account-facts > div {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
    min-height: 0;
  }

  .admin-account-facts > div:last-child {
    border-bottom: 0;
  }

  .admin-learning-map > header {
    flex-direction: column;
  }

  .admin-learning-map header a {
    width: 100%;
  }

  .admin-race, .admin-revenue {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .admin-race-stages {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-race-stage {
    min-height: 0;
  }

  .admin-race-grid > section, .admin-race-sources, .admin-revenue-grid > section, .admin-revenue-queue, .admin-revenue-measurement {
    padding: 16px 14px;
  }

  .admin-race-guardrail {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .admin-race-guardrail > span {
    width: 44px;
    height: 44px;
  }

  .admin-revenue-scorecard > dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-revenue-scorecard > dl > div, .admin-revenue-scorecard > dl > div:nth-child(odd) {
    border-left: 1px solid var(--line-light);
    border-top: 0;
  }

  .admin-revenue-scorecard > dl > div:first-child {
    border-top: 1px solid var(--line-light);
  }

  .admin-revenue-opportunities article > dl > div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .admin-revenue-notice {
    left: max(12px, env(safe-area-inset-left));
    max-width: none;
    right: max(12px, env(safe-area-inset-right));
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: auto;
    transform: none;
  }

  .admin-revenue-notice button {
    min-height: 40px;
  }
}

.flashcard-desk {
  color: var(--ink);
  background: radial-gradient(circle at 12% 92%, #15b37e26, #0000 30%), radial-gradient(circle at 94% 5%, #ff6c131f, #0000 28%), #eef2ed;
}

.flashcard-desk > header {
  color: #5f6b76;
  border-bottom-color: #141e2a24;
}

.flashcard-session-progress {
  grid-template-columns: auto 1fr;
  gap: 3px;
  min-width: min(250px, 34vw);
  display: grid;
}

.flashcard-session-progress > strong {
  color: var(--ink);
  font-size: .82rem;
}

.flashcard-session-progress > span {
  color: #67737f;
  text-align: right;
  align-self: end;
  font-size: .64rem;
}

.flashcard-session-progress > i {
  background: #141e2a1f;
  border-radius: 999px;
  grid-column: 1 / -1;
  height: 5px;
  margin-top: 4px;
  overflow: hidden;
}

.flashcard-session-progress > i > b {
  border-radius: inherit;
  background: linear-gradient(90deg, #16a978, #38c990);
  height: 100%;
  transition: width .32s cubic-bezier(.16, 1, .3, 1);
  display: block;
}

.flashcard-desk .flashcard-exit, .flashcard-desk .flashcard-card-navigation button {
  color: var(--ink);
  border-color: #141e2a38;
}

.flashcard-desk .flashcard-exit:hover, .flashcard-desk .flashcard-card-navigation button:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.flashcard-desk .flashcard-card-navigation button:disabled {
  color: #9aa3aa;
  border-color: #141e2a17;
}

.flashcard-desk .flashcard-card-navigation strong {
  color: #53606c;
}

.flashcard-card-stack {
  isolation: isolate;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  flex: auto;
  justify-content: center;
  align-items: stretch;
  width: min(100%, 690px);
  max-width: 690px;
  min-height: 470px;
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  position: relative;
}

.flashcard-card-shadow {
  background: #d8ddda;
  border: 1px solid #141e2a14;
  border-radius: 34px;
  position: absolute;
  top: 34px;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 12px 28px #141e2a17;
}

.flashcard-card-shadow-back {
  opacity: .55;
  z-index: 0;
  width: 91%;
  transform: translateX(-50%) rotate(2.1deg);
}

.flashcard-card-shadow-middle {
  opacity: .92;
  z-index: 1;
  background: #e5e9e6;
  width: 96%;
  bottom: 24px;
  transform: translateX(-50%) rotate(-1.15deg);
}

.flashcard-card {
  background: var(--white);
  transform-origin: 50% 90%;
  z-index: 3;
  border: 1px solid #ffffff47;
  border-radius: 32px;
  flex-direction: column;
  flex: auto;
  width: 100%;
  min-height: 440px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 54px #141e2a33, 0 3px 8px #141e2a1a;
}

.flashcard-card.is-moving-next {
  animation: .44s cubic-bezier(.18, .9, .22, 1.08) both flashcard-deal-next;
}

.flashcard-card.is-moving-previous {
  animation: .44s cubic-bezier(.18, .9, .22, 1.08) both flashcard-deal-previous;
}

.flashcard-desk.is-immersive {
  overflow-x: hidden;
}

.flashcard-card.flashcard-motion {
  --swipe-x: 0px;
  --swipe-rotation: 0deg;
  --swipe-feedback: 0;
  touch-action: pan-y;
  transform: translate3d(var(--swipe-x), 0, 0) rotate(var(--swipe-rotation));
  transform-origin: 50% 85%;
  transition: transform .24s cubic-bezier(.16, 1, .3, 1);
  animation: .24s cubic-bezier(.16, 1, .3, 1) flashcard-stack-arrive;
}

.flashcard-motion[data-dragging="true"] {
  cursor: grabbing;
  will-change: transform;
  transition: none;
}

.flashcard-motion:focus-visible {
  outline: 3px solid var(--theme-link);
  outline-offset: 5px;
}

.flashcard-swipe-feedback {
  background: var(--theme-surface, #fff);
  border-radius: inherit;
  color: var(--studio-green, #37705b);
  opacity: var(--swipe-feedback);
  pointer-events: none;
  z-index: 5;
  border: 4px solid;
  align-items: center;
  padding: 24px;
  transition: opacity .12s ease-out;
  display: grid;
  position: absolute;
  inset: 0;
}

.flashcard-motion[data-dragging="true"] .flashcard-swipe-feedback {
  transition: none;
}

.flashcard-motion[data-outcome="learning"] .flashcard-swipe-feedback {
  color: #a94b08;
}

html[data-theme="dark"] .flashcard-swipe-feedback {
  color: #9bd6b9;
}

html[data-theme="dark"] .flashcard-motion[data-outcome="learning"] .flashcard-swipe-feedback {
  color: #ffb365;
}

.flashcard-swipe-feedback > div {
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: none;
}

.flashcard-motion[data-outcome="known"] .flashcard-swipe-known, .flashcard-motion[data-outcome="learning"] .flashcard-swipe-learning {
  display: flex;
}

.flashcard-swipe-feedback strong {
  letter-spacing: -.025em;
  font-size: clamp(1.65rem, 5vw, 2.6rem);
  font-weight: 750;
  line-height: 1.2;
}

.flashcard-swipe-feedback svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.flashcard-swipe-instructions {
  color: var(--theme-muted);
  text-align: center;
  margin: 12px 0 -8px;
  font-size: .75rem;
  line-height: 1.4;
}

.flashcard-card .flashcard-ratings button:disabled {
  cursor: wait;
  opacity: .6;
}

@keyframes flashcard-stack-arrive {
  from {
    opacity: .65;
    transform: translate3d(0, 12px, 0) scale(.965);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flashcard-card.flashcard-motion {
    transition: none;
    animation: .12s ease-out flashcard-card-fade;
    transform: none;
  }
}

.flashcard-card .flashcard-face {
  background: radial-gradient(circle at 88% 12%, #ffffff26, transparent 30%), linear-gradient(145deg, #2813b8 0%, var(--cobalt) 52%, #071f83 100%);
  flex: auto;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 18px;
  min-height: 280px;
  padding: 28px clamp(24px, 5vw, 50px);
}

.flashcard-card .flashcard-face p {
  color: #d6dcff;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 800;
}

.flashcard-card .flashcard-face > strong {
  color: var(--white);
  text-shadow: 0 2px 12px #00000026;
}

.flashcard-card .audio-button-control {
  z-index: 1;
  position: relative;
}

.flashcard-card-response {
  background: var(--white);
  color: var(--ink);
  min-height: 112px;
  padding: 18px clamp(20px, 4vw, 36px) 22px;
}

.flashcard-card .flashcard-reveal {
  color: var(--white);
  background: #f36c16;
  border-radius: 18px;
  min-height: 60px;
}

.flashcard-card .flashcard-reveal:hover {
  background: #d95709;
}

.flashcard-card .flashcard-answer {
  border-block: 0;
  padding: 2px 0 12px;
}

.flashcard-card .flashcard-answer span {
  color: #6a7580;
}

.flashcard-card .flashcard-answer p {
  color: var(--cobalt);
}

.flashcard-card .flashcard-ratings {
  margin-top: 8px;
}

.flashcard-card .flashcard-ratings button {
  color: var(--ink);
  border-color: #bdc5cc;
  border-radius: 14px;
}

.flashcard-card .flashcard-ratings button:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background: #eef3ff;
}

.flashcard-card .flashcard-ratings button:nth-child(3), .flashcard-card .flashcard-ratings button:nth-child(4) {
  color: #087e58;
  border-color: #78c9aa;
}

.flashcard-card .flashcard-message {
  color: #8b5700;
}

.flashcard-desk.is-immersive .flashcard-card .flashcard-ratings {
  background: var(--white);
  padding-bottom: 0;
  position: static;
}

@keyframes flashcard-deal-next {
  from {
    opacity: .35;
    transform: translate3d(12%, 14px, 0) rotate(3.2deg) scale(.94);
  }

  68% {
    opacity: 1;
    transform: translate3d(-1.5%, -2px, 0) rotate(-.45deg) scale(1.006);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes flashcard-deal-previous {
  from {
    opacity: .35;
    transform: translate3d(-12%, 14px, 0) rotate(-3.2deg) scale(.94);
  }

  68% {
    opacity: 1;
    transform: translate3d(1.5%, -2px, 0) rotate(.45deg) scale(1.006);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@media (max-width: 680px) {
  .flashcard-session-progress {
    grid-row: 1;
    min-width: 0;
  }

  .flashcard-desk.is-immersive > header > .flashcard-session-progress {
    text-align: left;
    grid-column: 2;
  }

  .flashcard-session-progress > span {
    display: none;
  }

  .flashcard-card-stack {
    width: 100%;
    min-height: 0;
    padding: 16px 0 18px;
  }

  .flashcard-card-shadow {
    border-radius: 27px;
    top: 26px;
    bottom: 8px;
  }

  .flashcard-card {
    border-radius: 26px;
    min-height: min(500px, 100dvh - 180px);
  }

  .flashcard-card .flashcard-face {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 10px;
    min-height: 245px;
    padding: 22px 20px;
  }

  .flashcard-card .flashcard-face > strong {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .flashcard-card-response {
    min-height: 104px;
    padding: 14px 14px 16px;
  }

  .flashcard-card .flashcard-reveal {
    border-radius: 15px;
    min-height: 56px;
  }

  .flashcard-card .flashcard-ratings {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .flashcard-card .flashcard-ratings button {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flashcard-card.is-moving-next, .flashcard-card.is-moving-previous {
    animation: .12s ease-out both flashcard-card-fade;
  }

  .flashcard-session-progress > i > b {
    transition: none;
  }
}

@keyframes flashcard-card-fade {
  from {
    opacity: .72;
  }

  to {
    opacity: 1;
  }
}

body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-shell {
  background: radial-gradient(circle at 100% 0, #ffbf191a, transparent 24%), var(--paper);
  color: var(--ink);
}

body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-header {
  border-bottom-color: var(--line-light);
  color: #64707c;
}

body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-header .flashcard-exit, body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-header .flashcard-card-navigation button {
  color: var(--ink);
  border-color: #b9c1ca;
}

body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-header .flashcard-card-navigation strong, body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-source {
  color: #5f6b76;
}

.vocabulary-app-stage.is-card-deck {
  overflow: hidden;
}

.vocabulary-deck-stack {
  isolation: isolate;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  max-width: 700px;
  height: 100%;
  margin: 0 auto;
  padding: 18px 4px 24px;
  position: relative;
}

.vocabulary-deck-layer {
  background: #dde3df;
  border: 1px solid #cbd3ce;
  border-radius: 30px;
  position: absolute;
  top: 32px;
  bottom: 12px;
  left: 50%;
}

.vocabulary-deck-layer.is-back {
  opacity: .58;
  z-index: 0;
  width: 90%;
  transform: translateX(-50%) rotate(1.8deg);
}

.vocabulary-deck-layer.is-middle {
  z-index: 1;
  background: #e9edea;
  width: 96%;
  transform: translateX(-50%) rotate(-.9deg);
}

.vocabulary-deck-card {
  background: var(--white);
  transform-origin: 50% 90%;
  z-index: 2;
  border: 1px solid #cdd4dc;
  border-radius: 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.vocabulary-deck-card.is-moving-next {
  animation: .44s cubic-bezier(.18, .9, .22, 1.08) both flashcard-deal-next;
}

.vocabulary-deck-card.is-moving-previous {
  animation: .44s cubic-bezier(.18, .9, .22, 1.08) both flashcard-deal-previous;
}

.vocabulary-deck-card .vocabulary-practice.is-immersive {
  height: 100%;
}

.vocabulary-deck-card .vocabulary-app-word-face {
  background: var(--cobalt);
  color: var(--white);
  border-bottom: 0;
  margin: 0;
}

.vocabulary-deck-card .vocabulary-app-word-face .practice-arabic-focus {
  color: var(--white);
}

.vocabulary-deck-card .vocabulary-app-word-face .practice-transliteration {
  color: var(--cobalt-tint);
}

.vocabulary-deck-card .vocabulary-app-recall, .vocabulary-deck-card .vocabulary-review-response-deck.is-immersive {
  background: var(--white);
  color: var(--ink);
}

.vocabulary-deck-card .vocabulary-app-recall span, .vocabulary-deck-card .vocabulary-app-meaning > span {
  color: var(--cobalt);
}

.vocabulary-deck-card .vocabulary-app-recall .flashcard-reveal {
  background: var(--saffron);
  color: var(--ink);
  border-radius: 15px;
}

.vocabulary-deck-card .vocabulary-app-recall .flashcard-reveal:hover {
  background: var(--saffron-pale);
}

.vocabulary-deck-card .vocabulary-app-meaning strong {
  color: var(--ink);
}

.vocabulary-deck-card .vocab-skip-response {
  color: var(--cobalt);
}

.vocabulary-deck-card .vocab-type-panel label {
  color: #5d6975;
}

@media (max-width: 680px) {
  .vocabulary-deck-stack {
    padding: 12px 1px 16px;
  }

  .vocabulary-deck-layer {
    border-radius: 24px;
    top: 22px;
    bottom: 6px;
  }

  .vocabulary-deck-card {
    border-radius: 23px;
  }

  .vocabulary-deck-card .vocabulary-app-word-face {
    flex-basis: min(250px, 36dvh);
  }

  .vocabulary-deck-card .vocabulary-app-recall, .vocabulary-deck-card .vocabulary-review-response-deck.is-immersive {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vocabulary-deck-card.is-moving-next, .vocabulary-deck-card.is-moving-previous {
    animation: .12s ease-out both flashcard-card-fade;
  }
}

.flashcard-card .flashcard-face {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.flashcard-card .flashcard-face > p {
  position: absolute;
  top: 24px;
  left: clamp(20px, 4vw, 36px);
  right: clamp(76px, 10vw, 96px);
}

.flashcard-card .flashcard-face > strong {
  text-align: center;
  width: 100%;
  margin-inline: auto;
}

.flashcard-card .flashcard-face > .audio-button-control, .vocabulary-deck-card .vocabulary-app-word-face > .audio-button-control {
  width: 46px;
  min-width: 0;
  position: absolute;
  bottom: 14px;
  right: 16px;
}

.flashcard-card .flashcard-face .lesson-audio-button, .vocabulary-deck-card .vocabulary-app-word-face .lesson-audio-button {
  width: 46px;
  height: 46px;
}

.flashcard-card .flashcard-face .lesson-audio-face, .vocabulary-deck-card .vocabulary-app-word-face .lesson-audio-face {
  width: 36px;
  height: 36px;
}

.flashcard-card .flashcard-face .lesson-audio-face svg, .vocabulary-deck-card .vocabulary-app-word-face .lesson-audio-face svg {
  width: 21px;
  height: 18px;
}

.flashcard-card .flashcard-face .lesson-audio-label, .vocabulary-deck-card .vocabulary-app-word-face .lesson-audio-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  position: absolute;
  overflow: hidden;
}

.vocabulary-deck-card .vocabulary-app-word-face {
  position: relative;
}

.vocabulary-deck-card .vocabulary-app-word-face .practice-arabic-focus, .vocabulary-deck-card .vocabulary-app-word-face .practice-transliteration {
  text-align: center;
  width: 100%;
  margin-inline: auto;
}

@media (max-width: 680px) {
  .flashcard-card .flashcard-face > p {
    top: 20px;
    left: 20px;
    right: 72px;
  }

  .flashcard-card .flashcard-face > .audio-button-control, .vocabulary-deck-card .vocabulary-app-word-face > .audio-button-control {
    bottom: 12px;
    right: 12px;
  }
}

.foundation-card-stage {
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}

.foundation-card-stage .foundation-specimen {
  text-align: center;
  justify-self: stretch;
  width: 100%;
  padding-inline: clamp(18px, 4vw, 52px);
}

.foundation-card-stage .foundation-specimen > strong {
  text-align: center;
  width: 100%;
  margin-inline: auto;
  display: block;
}

.foundation-card-stage > .audio-button-control {
  width: 46px;
  min-width: 0;
  position: absolute;
  bottom: 16px;
  right: 18px;
}

.foundation-card-stage > .audio-button-control .lesson-audio-button {
  width: 46px;
  height: 46px;
}

.foundation-card-stage > .audio-button-control .lesson-audio-face {
  width: 36px;
  height: 36px;
}

.foundation-card-stage > .audio-button-control .lesson-audio-face svg {
  width: 21px;
  height: 18px;
}

.foundation-card-stage > .audio-button-control .lesson-audio-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  position: absolute;
  overflow: hidden;
}

@media (max-width: 820px) {
  .foundation-card-stage .foundation-specimen {
    padding-inline: 12px;
  }

  .foundation-card-stage > .audio-button-control {
    bottom: 12px;
    right: 12px;
  }
}

.vocabulary-app-word-face, .vocab-word-face {
  position: relative;
}

.vocabulary-app-word-face > .audio-button-control, .vocab-word-face > .audio-button-control {
  width: 46px;
  min-width: 0;
  position: absolute;
  bottom: 14px;
  right: 16px;
}

.vocabulary-app-word-face > .audio-button-control .lesson-audio-button, .vocab-word-face > .audio-button-control .lesson-audio-button {
  width: 46px;
  height: 46px;
}

.vocabulary-app-word-face > .audio-button-control .lesson-audio-face, .vocab-word-face > .audio-button-control .lesson-audio-face {
  width: 36px;
  height: 36px;
}

.vocabulary-app-word-face > .audio-button-control .lesson-audio-face svg, .vocab-word-face > .audio-button-control .lesson-audio-face svg {
  width: 21px;
  height: 18px;
}

.vocabulary-app-word-face > .audio-button-control .lesson-audio-label, .vocab-word-face > .audio-button-control .lesson-audio-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  position: absolute;
  overflow: hidden;
}

.vocabulary-app-word-face .practice-arabic-focus, .vocab-word-face .vocab-focus-arabic {
  text-align: center;
  width: 100%;
  margin-inline: auto;
}

@media (max-width: 680px) {
  .vocabulary-app-word-face > .audio-button-control, .vocab-word-face > .audio-button-control {
    bottom: 12px;
    right: 12px;
  }
}

.flashcard-desk.is-immersive .flashcard-card .flashcard-face > .audio-button-control {
  justify-content: center;
  width: 46px;
  min-width: 0;
  min-height: 0;
  position: absolute;
  bottom: 14px;
  right: 16px;
}

.flashcard-desk.is-immersive .flashcard-card .flashcard-face .lesson-audio-button {
  width: 46px;
  height: 46px;
}

.flashcard-desk.is-immersive .flashcard-card .flashcard-face .lesson-audio-face {
  width: 36px;
  height: 36px;
}

.flashcard-desk.is-immersive .flashcard-card .flashcard-face .lesson-audio-face svg {
  width: 21px;
  height: 18px;
}

@media (max-width: 680px) {
  .flashcard-desk.is-immersive .flashcard-card .flashcard-face > .audio-button-control {
    bottom: 12px;
    right: 12px;
  }
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive {
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  align-content: center;
  overflow-y: auto;
}

.vocabulary-deck-card .vocabulary-app-meaning {
  border-bottom: 0;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-combined-response {
  grid-template-columns: 52px minmax(0, 1fr);
  place-items: end stretch;
  gap: 8px 10px;
  min-height: 0;
  padding: 12px 0 0;
  display: grid;
}

.vocabulary-deck-card .vocab-voice-panel {
  grid-area: 1 / 1;
  width: 52px;
  min-height: 54px;
}

.vocabulary-deck-card .vocab-voice-panel .microphone-control {
  width: 52px;
  min-width: 0;
}

.vocabulary-deck-card .vocab-voice-panel .lesson-mic {
  width: 52px;
  height: 52px;
}

.vocabulary-deck-card .vocab-voice-panel .lesson-mic-face {
  width: 42px;
  height: 42px;
}

.vocabulary-deck-card .vocab-voice-panel .lesson-mic-face svg {
  width: 20px;
  height: 20px;
}

.vocabulary-deck-card .vocab-voice-panel .lesson-mic-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  position: absolute;
  overflow: hidden;
}

.vocabulary-deck-card .vocab-type-panel {
  grid-area: 1 / 2;
  width: 100%;
  min-height: 0;
}

.vocabulary-deck-card .vocab-type-panel label {
  color: #5d6975;
  margin-bottom: 6px;
  font-size: .68rem;
  font-weight: 700;
}

.vocabulary-deck-card .vocab-type-panel > div {
  border: 1px solid #aeb8c4;
  border-radius: 14px;
  min-height: 54px;
  overflow: hidden;
}

.vocabulary-deck-card .vocab-type-panel input {
  color: var(--ink);
  background: #f4f6f7;
  border: 0;
  min-height: 54px;
  padding-inline: 14px;
  font-size: 1rem;
}

.vocabulary-deck-card .vocab-type-panel input::placeholder {
  color: #7c8791;
  opacity: 1;
}

.vocabulary-deck-card .vocab-type-panel input:focus {
  outline: 0;
}

.vocabulary-deck-card .vocab-type-panel > div:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 2px #0a38c829;
}

.vocabulary-deck-card .vocab-type-panel button {
  background: var(--saffron);
  color: var(--ink);
  min-width: 86px;
  padding-inline: 16px;
}

.vocabulary-deck-card .vocab-type-panel button:disabled {
  color: #59626b;
  opacity: .62;
}

.vocabulary-deck-card .vocab-skip-response {
  color: var(--cobalt);
  background: none;
  border: 0;
  grid-area: 2 / 1 / auto / -1;
  justify-self: center;
  min-height: 38px;
  padding: 4px 12px;
}

.vocabulary-deck-card .vocab-skip-response:hover {
  color: var(--cobalt-deep);
  background: #eef3ff;
}

@media (max-width: 680px) {
  .vocabulary-deck-card .vocabulary-review-response-deck.is-immersive {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-combined-response {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px 8px;
    padding-top: 8px;
  }

  .vocabulary-deck-card .vocab-voice-panel, .vocabulary-deck-card .vocab-voice-panel .microphone-control {
    width: 48px;
  }

  .vocabulary-deck-card .vocab-voice-panel .lesson-mic {
    width: 48px;
    height: 48px;
  }

  .vocabulary-deck-card .vocab-voice-panel .lesson-mic-face {
    width: 38px;
    height: 38px;
  }

  .vocabulary-deck-card .vocab-type-panel > div, .vocabulary-deck-card .vocab-type-panel input {
    min-height: 50px;
  }

  .vocabulary-deck-card .vocab-type-panel button {
    min-width: 72px;
    padding-inline: 10px;
  }
}

.review-complete-screen {
  background: var(--ink);
  color: var(--white);
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  flex-direction: column;
  flex: auto;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.review-complete-close {
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 1px solid #58636d;
  border-radius: 50%;
  justify-content: center;
  align-self: flex-end;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  display: flex;
}

.review-complete-close:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.review-complete-content {
  text-align: center;
  flex-direction: column;
  flex: auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 760px;
  padding-block: 28px;
  display: flex;
}

.review-complete-seal {
  justify-content: center;
  align-items: center;
  width: 170px;
  height: 170px;
  display: flex;
  position: relative;
}

.review-complete-seal:before, .review-complete-seal:after {
  border: 2px solid var(--saffron);
  content: "";
  opacity: 0;
  border-radius: 50%;
  position: absolute;
  inset: 18px;
}

.review-complete-seal:after {
  border-color: var(--cobalt-tint);
  inset: 6px;
}

.review-complete-seal svg {
  filter: drop-shadow(0 12px 18px #2d722b47);
  width: 148px;
  height: 148px;
  overflow: visible;
}

.review-complete-seal circle {
  fill: var(--success);
  stroke: #75ad6e;
  stroke-width: 3px;
}

.review-complete-seal path {
  fill: none;
  stroke: var(--white);
  stroke-dasharray: 80;
  stroke-dashoffset: 80px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 11px;
}

.review-complete-copy {
  margin-top: 24px;
}

.review-complete-copy > span {
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 800;
  display: block;
}

.review-complete-copy h1, .review-complete-copy h2 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  max-width: 15ch;
  margin: 12px auto 0;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  font-weight: 600;
  line-height: .94;
}

.review-complete-copy p {
  color: var(--ink-tint);
  max-width: 42ch;
  margin: 18px auto 0;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  line-height: 1.5;
}

.review-complete-actions {
  gap: 10px;
  width: 100%;
  max-width: 680px;
  display: grid;
}

.review-complete-primary, .review-complete-secondary {
  border: 1px solid var(--saffron);
  cursor: pointer;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: min(680px, 100%);
  min-height: 64px;
  padding: 14px 24px;
  font-size: .9rem;
  font-weight: 800;
  display: flex;
}

.review-complete-primary {
  background: var(--saffron);
  color: var(--ink);
  margin-inline: auto;
  text-decoration: none;
}

.review-complete-primary:hover {
  background: var(--saffron-pale);
}

.review-complete-secondary {
  color: var(--white);
  background: none;
}

.review-complete-secondary:hover {
  border-color: var(--white);
}

.review-complete-screen > .review-complete-primary {
  flex: none;
}

.review-complete-screen .review-complete-seal {
  animation: .62s cubic-bezier(.18, .9, .22, 1.18) .1s both review-complete-pop;
}

.review-complete-screen .review-complete-seal:before {
  animation: .9s ease-out .36s both review-complete-ring;
}

.review-complete-screen .review-complete-seal:after {
  animation: .9s ease-out .5s both review-complete-ring;
}

.review-complete-screen .review-complete-seal path {
  animation: .48s cubic-bezier(.16, 1, .3, 1) .48s forwards review-complete-check;
}

.review-complete-screen .review-complete-copy {
  animation: .48s cubic-bezier(.16, 1, .3, 1) .42s both review-complete-rise;
}

.review-complete-screen > .review-complete-primary, .review-complete-screen > .review-complete-actions {
  animation: .48s cubic-bezier(.16, 1, .3, 1) .58s both review-complete-rise;
}

@keyframes review-complete-pop {
  from {
    opacity: 0;
    transform: scale(.54) rotate(-8deg);
  }

  70% {
    opacity: 1;
    transform: scale(1.06) rotate(1.5deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes review-complete-ring {
  from {
    opacity: .72;
    transform: scale(.55);
  }

  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes review-complete-check {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes review-complete-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .review-complete-screen {
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }

  .review-complete-close {
    width: 44px;
    height: 44px;
  }

  .review-complete-content {
    padding-block: 18px;
  }

  .review-complete-seal {
    width: 138px;
    height: 138px;
  }

  .review-complete-seal svg {
    width: 120px;
    height: 120px;
  }

  .review-complete-copy {
    margin-top: 18px;
  }

  .review-complete-copy h1, .review-complete-copy h2 {
    max-width: 13ch;
    font-size: clamp(2.55rem, 11vw, 3.7rem);
  }

  .review-complete-copy p {
    margin-top: 14px;
  }

  .review-complete-primary, .review-complete-secondary {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-complete-screen .review-complete-seal, .review-complete-screen .review-complete-seal:before, .review-complete-screen .review-complete-seal:after, .review-complete-screen .review-complete-seal path, .review-complete-screen .review-complete-copy, .review-complete-screen > .review-complete-primary, .review-complete-screen > .review-complete-actions {
    animation: none;
  }

  .review-complete-screen .review-complete-seal path {
    stroke-dashoffset: 0;
  }
}

.flashcard-reveal, .foundation-reveal {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.flashcard-reveal:after, .foundation-reveal:after {
  content: "";
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(110deg, #0000 24%, #ffffff14 39%, #ffffff94 50%, #ffffff1a 61%, #0000 76%);
  animation: 4.6s cubic-bezier(.4, 0, .2, 1) .9s infinite reveal-button-shimmer;
  position: absolute;
  inset: 0;
  transform: translateX(-145%);
}

.flashcard-reveal:hover:after, .foundation-reveal:hover:after {
  animation-duration: 1.8s;
}

.flashcard-reveal:active:after, .foundation-reveal:active:after {
  opacity: .45;
}

@keyframes reveal-button-shimmer {
  0%, 58% {
    transform: translateX(-145%);
  }

  82%, 100% {
    transform: translateX(145%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flashcard-reveal:after, .foundation-reveal:after {
    animation: none;
  }
}

.vocabulary-deck-card .vocab-result-panel {
  color: var(--ink);
  background: #f7f8f9;
  border-color: #77838e;
}

.vocabulary-deck-card .vocab-result-panel.is-review {
  background: #fff8e6;
  border-color: #8a6a0a;
}

.vocabulary-deck-card .vocab-result-panel.is-success {
  background: var(--success-pale);
  border-color: var(--success);
}

.vocabulary-deck-card .vocab-result-score {
  border-right-color: #77838e;
}

.vocabulary-deck-card .vocab-result-score strong {
  color: #8a5800;
}

.vocabulary-deck-card .vocab-result-panel.is-success .vocab-result-score strong {
  color: #225f20;
}

.vocabulary-deck-card .vocab-result-score span {
  color: #4f5b66;
}

.vocabulary-deck-card .vocab-result-panel > div:nth-child(2) > span {
  color: #704f00;
}

.vocabulary-deck-card .vocab-result-panel.is-success > div:nth-child(2) > span {
  color: #225f20;
}

.vocabulary-deck-card .vocab-result-panel > div:nth-child(2) p {
  color: #35414c;
}

.vocabulary-deck-card .vocab-result-panel > div:nth-child(2) small {
  color: var(--ink);
}

.vocabulary-deck-card .vocab-result-actions button {
  background: var(--white);
  color: var(--ink);
  border-color: #65717c;
}

.vocabulary-deck-card .vocab-result-actions button:hover {
  border-color: var(--ink);
  background: #eef1f4;
}

.vocabulary-deck-card .vocab-result-actions button.is-primary {
  background: var(--saffron);
  color: var(--ink);
  border-color: #b77c00;
}

.vocabulary-deck-card .vocab-result-actions button.is-primary:hover {
  background: var(--saffron-pale);
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel.is-success {
  color: #080c11 !important;
  background: #edf5eb !important;
  border-color: #2d722b !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel.is-review {
  color: #080c11 !important;
  background: #fff6dc !important;
  border-color: #7a5a00 !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel.is-success .vocab-result-score strong {
  color: #1f5b1d !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel.is-review .vocab-result-score strong {
  color: #714800 !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel .vocab-result-score span {
  color: #46525d !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel.is-success > div:nth-child(2) > span {
  color: #1f5b1d !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel.is-review > div:nth-child(2) > span {
  color: #654600 !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel > div:nth-child(2) p {
  font-size: .74rem;
  color: #26323c !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel > div:nth-child(2) small {
  font-size: .8rem;
  color: #080c11 !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel .vocab-result-actions button {
  color: #080c11 !important;
  background: #fff !important;
  border-color: #4f5b66 !important;
}

.vocabulary-deck-card .vocabulary-review-response-deck.is-immersive .vocab-result-panel .vocab-result-actions button.is-primary {
  color: #080c11 !important;
  background: #ffbf19 !important;
  border-color: #9a6800 !important;
}

.flashcard-card-stack, .vocabulary-deck-stack {
  position: relative;
}

.swipe-gesture-hint {
  color: #fff;
  pointer-events: none;
  z-index: 12;
  background: #080c11eb;
  border: 1px solid #ffffff38;
  border-radius: 999px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: min(290px, 100% - 40px);
  padding: 14px 22px 15px;
  animation: 4.4s cubic-bezier(.16, 1, .3, 1) both swipe-gesture-hint-life;
  display: flex;
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 36px #080c1147;
}

.swipe-gesture-hint strong {
  font-family: var(--font-ui);
  letter-spacing: .01em;
  text-align: center;
  font-size: .82rem;
  font-weight: 750;
}

.swipe-gesture-track {
  color: var(--saffron);
  justify-content: space-between;
  align-items: center;
  width: 126px;
  height: 26px;
  display: flex;
  position: relative;
}

.swipe-gesture-track i {
  opacity: .76;
  font-size: 1.7rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.swipe-gesture-track b {
  border: 3px solid var(--saffron);
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: 1.45s cubic-bezier(.65, 0, .35, 1) .25s 2 alternate swipe-gesture-travel;
  position: absolute;
  left: calc(50% - 11px);
  box-shadow: 0 3px 10px #00000047;
}

@keyframes swipe-gesture-travel {
  from {
    transform: translateX(-38px);
  }

  to {
    transform: translateX(38px);
  }
}

@keyframes swipe-gesture-hint-life {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(.94);
  }

  10%, 76% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -54%) scale(.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-gesture-hint, .swipe-gesture-track b {
    animation: none;
  }
}

.vocab-recall-panel .vocab-choices button {
  overflow-wrap: anywhere;
  min-height: 64px;
  padding: 13px 16px;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 650;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .vocab-recall-panel .vocab-choices button {
    min-height: 58px;
    padding: 12px 14px;
    font-size: 1rem;
  }
}

.flashcard-desk > header {
  z-index: 12;
  position: relative;
}

.flashcard-desk.is-immersive > header {
  grid-template-columns: auto minmax(100px, 1fr) auto auto;
}

.flashcard-preferences {
  align-self: center;
  position: relative;
}

.flashcard-preferences > summary {
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #141e2a38;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 800;
  list-style: none;
  display: inline-flex;
}

.flashcard-preferences > summary::-webkit-details-marker {
  display: none;
}

.flashcard-preferences > summary:hover, .flashcard-preferences[open] > summary {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.flashcard-preferences > summary span:first-child {
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.flashcard-preferences > summary svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  width: 22px;
  height: 22px;
}

.flashcard-preferences[open] > summary svg {
  display: none;
}

.flashcard-preferences-panel {
  background: var(--white);
  color: var(--ink);
  z-index: 30;
  border: 1px solid #cbd2d8;
  border-radius: 18px;
  gap: 18px;
  width: min(310px, 100vw - 32px);
  padding: 18px;
  display: grid;
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  box-shadow: 0 18px 42px #141e2a33;
}

.flashcard-preferences-panel fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.flashcard-preferences-panel legend {
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 800;
}

.flashcard-preference-options {
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  display: grid;
}

.flashcard-preferences-panel fieldset:last-child .flashcard-preference-options {
  grid-template-columns: repeat(2, 1fr);
}

.flashcard-preference-options button {
  color: #34404a;
  cursor: pointer;
  background: #f4f6f7;
  border: 1px solid #d5dade;
  border-radius: 10px;
  min-height: 42px;
  padding: 7px 8px;
  font-size: .72rem;
  font-weight: 750;
}

.flashcard-preference-options button[aria-pressed="true"] {
  border-color: var(--cobalt);
  color: var(--cobalt);
  box-shadow: inset 0 0 0 1px var(--cobalt);
  background: #e9efff;
}

.flashcard-card .flashcard-face > .flashcard-front-english {
  font-family: var(--font-ui);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
}

.flashcard-card.flashcard-text-large .flashcard-face > strong {
  font-size: clamp(4rem, 8.5vw, 7.5rem);
}

.flashcard-card.flashcard-text-extra .flashcard-face > strong {
  font-size: clamp(4.6rem, 10vw, 8.6rem);
}

.flashcard-card.flashcard-text-large .flashcard-face > .flashcard-front-english {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.flashcard-card.flashcard-text-extra .flashcard-face > .flashcard-front-english {
  font-size: clamp(3.15rem, 7vw, 5.5rem);
}

.flashcard-card.flashcard-text-large .flashcard-answer > strong {
  font-size: 1.85rem;
}

.flashcard-card.flashcard-text-extra .flashcard-answer > strong {
  font-size: 2.2rem;
}

.flashcard-answer > .flashcard-answer-arabic {
  font-family: var(--font-arabic);
  font-size: 2.45rem;
  line-height: 1.4;
}

.flashcard-card.flashcard-text-large .flashcard-answer > .flashcard-answer-arabic {
  font-size: 3rem;
}

.flashcard-card.flashcard-text-extra .flashcard-answer > .flashcard-answer-arabic {
  font-size: 3.6rem;
}

.flashcard-answer .audio-button-control {
  justify-content: center;
  min-height: 48px;
  margin: 10px auto 0;
}

.flashcard-answer .lesson-audio-button {
  width: 46px;
  height: 46px;
}

.flashcard-answer .lesson-audio-face {
  width: 36px;
  height: 36px;
}

.flashcard-answer .lesson-audio-label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

@media (max-width: 680px) {
  .flashcard-desk.is-immersive > header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .flashcard-desk.is-immersive > header > .flashcard-preferences {
    grid-area: 1 / 3;
  }

  .flashcard-preferences > summary {
    min-height: 42px;
    padding-inline: 10px;
  }

  .flashcard-preferences > summary span:last-child {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }

  .flashcard-preferences-panel {
    right: 16px;
    top: max(66px, calc(env(safe-area-inset-top) + 54px));
    position: fixed;
  }

  .flashcard-card.flashcard-text-large .flashcard-face > strong {
    font-size: clamp(3.7rem, 17vw, 5.7rem);
  }

  .flashcard-card.flashcard-text-extra .flashcard-face > strong {
    font-size: clamp(4.15rem, 19vw, 6.35rem);
  }

  .flashcard-card.flashcard-text-large .flashcard-face > .flashcard-front-english {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .flashcard-card.flashcard-text-extra .flashcard-face > .flashcard-front-english {
    font-size: clamp(2.9rem, 13vw, 4.6rem);
  }
}

.flashcard-preferences > summary span:first-child:after {
  content: "×";
  letter-spacing: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  display: none;
}

.flashcard-preferences[open] > summary span:first-child {
  letter-spacing: 0;
  font-size: 0;
}

.flashcard-preferences[open] > summary span:first-child:after {
  display: block;
}

.settings-mobile-select {
  position: relative;
}

.settings-mobile-select:after {
  color: var(--theme-text);
  content: "";
  pointer-events: none;
  transform-origin: center;
  border-bottom: 2px solid;
  border-right: 2px solid;
  width: 8px;
  height: 8px;
  position: absolute;
  bottom: 20px;
  right: 18px;
  transform: rotate(45deg);
}

@media (min-width: 901px) {
  .hero h1 {
    font-size: clamp(3.35rem, 4.7vw, 4.85rem);
    line-height: .92;
  }
}

@media (min-width: 821px) {
  .demo-bottom-row.loop-ordered .speak-station {
    grid-area: 1 / 2;
  }

  .demo-bottom-row.loop-ordered .guidance-station {
    grid-area: 1 / 1;
  }
}

.mobile-app-nav {
  display: none;
}

@media (max-width: 820px) {
  body:has(.mobile-app-nav) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .app-header nav.is-authenticated .app-header-primary-link {
    display: none;
  }

  .mobile-app-nav {
    background: var(--cobalt-deep);
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    z-index: 90;
    border-top: 1px solid #ffffff3d;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .mobile-app-nav a {
    color: var(--cobalt-tint);
    font-family: var(--font-display);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 8px 2px 6px;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    position: relative;
  }

  .mobile-app-nav a:before {
    content: "";
    background: none;
    height: 3px;
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
  }

  .mobile-app-nav a[aria-current="page"] {
    color: var(--saffron);
  }

  .mobile-app-nav a[aria-current="page"]:before {
    background: var(--saffron);
  }

  .mobile-app-nav svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8px;
    width: 24px;
    height: 24px;
  }

  .mobile-app-nav span {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
  }
}

.app-route-progress {
  display: none;
}

@media (max-width: 820px) {
  .app-route-progress {
    height: 3px;
    left: 0;
    right: 0;
    top: calc(68px + env(safe-area-inset-top));
    z-index: 95;
    background: #ffbf1933;
    display: block;
    position: fixed;
    overflow: hidden;
  }

  .app-route-progress:after {
    background: var(--saffron);
    content: "";
    width: 58%;
    animation: .9s cubic-bezier(.4, 0, .2, 1) infinite app-route-progress;
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
  }

  .mobile-app-nav a {
    transition: background-color .12s ease-out, color .12s ease-out, transform .12s ease-out;
  }

  .mobile-app-nav a:active, .mobile-app-nav a.is-pending {
    background: #ffffff14;
    transform: translateY(1px) scale(.96);
  }

  .mobile-app-nav a.is-pending svg {
    animation: .7s ease-in-out infinite alternate app-nav-pulse;
  }

  body:has(.mobile-app-nav) main > :not(.surface-contract):not(.app-header):not(.mobile-app-nav):not(.app-route-progress):not(:has(.app-header, .mobile-app-nav)) {
    animation: .26s cubic-bezier(.16, 1, .3, 1) both mobile-page-enter;
  }
}

@keyframes app-route-progress {
  0% {
    transform: translateX(-105%);
  }

  55% {
    transform: translateX(82%);
  }

  100% {
    transform: translateX(185%);
  }
}

@keyframes app-nav-pulse {
  from {
    opacity: .55;
  }

  to {
    opacity: 1;
  }
}

@keyframes mobile-page-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-route-progress:after, .mobile-app-nav a.is-pending svg, body:has(.mobile-app-nav) main > :not(.surface-contract):not(.app-header):not(.mobile-app-nav):not(.app-route-progress):not(:has(.app-header, .mobile-app-nav)) {
    animation: none;
  }

  .mobile-app-nav a {
    transition: none;
  }
}

@media (max-width: 820px) {
  body:has(.mobile-app-nav) {
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
    scroll-padding-top: calc(80px + env(safe-area-inset-top));
    scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  body:has(.mobile-app-nav) > main {
    min-height: calc(100svh - 68px - env(safe-area-inset-bottom));
    overscroll-behavior-y: contain;
    overflow-x: clip;
  }

  body:has(.mobile-app-nav) .app-header {
    z-index: 92;
    position: sticky;
    top: 0;
    box-shadow: 0 5px 18px #05154824;
  }

  body:has(.mobile-app-nav) main a, body:has(.mobile-app-nav) main button {
    touch-action: manipulation;
  }

  body:has(.mobile-app-nav) main [id] {
    scroll-margin-top: calc(80px + env(safe-area-inset-top));
  }

  .mobile-app-nav-badge, .mobile-app-nav-progress {
    background: var(--saffron);
    border: 2px solid var(--cobalt-deep);
    color: var(--ink);
    font-family: var(--font-ui);
    white-space: nowrap;
    z-index: 2;
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    min-width: 24px;
    max-width: none;
    height: 24px;
    padding: 0 6px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    animation: .22s cubic-bezier(.16, 1, .3, 1) both mobile-nav-indicator-arrive;
    display: flex;
    position: absolute;
    top: 0;
    left: calc(50% + 7px);
    overflow: visible;
  }

  .mobile-app-nav-progress {
    width: 13px;
    min-width: 13px;
    height: 13px;
    padding: 0;
    top: 3px;
    left: calc(50% + 11px);
  }
}

@keyframes mobile-nav-indicator-arrive {
  from {
    opacity: 0;
    transform: scale(.55);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-app-nav-badge, .mobile-app-nav-progress {
    animation: none;
  }
}

@media (max-width: 820px) {
  :root {
    --mobile-app-bar: calc(64px + env(safe-area-inset-bottom));
  }

  body:has(.mobile-app-nav) .app-header {
    min-height: calc(58px + env(safe-area-inset-top));
    padding: max(8px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
  }

  body:has(.mobile-app-nav) .app-header .wordmark {
    --wordmark-height: 24px;
  }

  body:has(.mobile-app-nav) .app-header-menu-toggle {
    border-color: #ffffff4d;
    border-radius: 12px;
    width: 44px;
    height: 42px;
  }

  body:has(.mobile-app-nav) .app-header nav {
    max-height: calc(100svh - 58px - env(safe-area-inset-top) - var(--mobile-app-bar));
    border-radius: 0 0 18px 18px;
    overflow-y: auto;
    box-shadow: 0 18px 34px #0414483d;
  }

  .mobile-app-nav {
    min-height: var(--mobile-app-bar);
    box-shadow: 0 -8px 24px #04144829;
  }

  .mobile-app-nav a {
    min-height: 58px;
  }

  body:has(.mobile-app-nav) .library-intro {
    gap: 22px;
    padding: 28px 18px;
  }

  body:has(.mobile-app-nav) .library-intro h1 {
    font-size: 3.15rem;
    line-height: .92;
  }

  body:has(.mobile-app-nav) .library-intro > div > p {
    margin-top: 18px;
  }

  body:has(.mobile-app-nav) .continue-field {
    border-radius: 16px;
    min-height: 250px;
    padding: 22px 20px 0;
    overflow: hidden;
  }

  body:has(.mobile-app-nav) .continue-field > p {
    font-size: 2.25rem;
  }

  body:has(.mobile-app-nav) .continue-field > a {
    min-height: 58px;
    margin-inline: -20px;
  }

  body:has(.mobile-app-nav) .curriculum-foundations-band {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 22px 18px;
  }

  body:has(.mobile-app-nav) .curriculum-foundations-band > div:first-child {
    border-right: 1px solid #3e4852;
  }

  body:has(.mobile-app-nav) .curriculum-foundations-band > div:first-child strong {
    font-size: 1.85rem;
  }

  body:has(.mobile-app-nav) .curriculum-foundations-band h2 {
    font-size: 1.55rem;
  }

  body:has(.mobile-app-nav) .curriculum-foundations-band p {
    font-size: .76rem;
  }

  body:has(.mobile-app-nav) .curriculum-foundations-band a {
    border-radius: 12px;
    grid-column: 1 / -1;
    min-height: 52px;
    padding: 15px 18px;
  }

  body:has(.mobile-app-nav) .book-rail {
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 18px;
  }

  body:has(.mobile-app-nav) .book-rail > span {
    font-size: .88rem;
  }

  body:has(.mobile-app-nav) .book-rail > strong {
    font-size: 2.8rem;
  }

  body:has(.mobile-app-nav) .book-rail > p {
    padding-left: 14px;
    font-size: .68rem;
  }

  body:has(.mobile-app-nav) .ledger-heading {
    align-items: stretch;
    gap: 18px;
    padding: 26px 18px 20px;
    display: grid;
  }

  body:has(.mobile-app-nav) .ledger-heading h2 {
    font-size: 2rem;
  }

  body:has(.mobile-app-nav) .ledger-heading p {
    font-size: .76rem;
    line-height: 1.5;
  }

  body:has(.mobile-app-nav) .ledger-heading dl {
    gap: 8px;
  }

  body:has(.mobile-app-nav) .ledger-heading dl div {
    flex: 1;
    min-width: 0;
  }

  body:has(.mobile-app-nav) .ledger-heading dt {
    font-size: .56rem;
    line-height: 1.25;
  }

  body:has(.mobile-app-nav) .ledger-heading dd {
    font-size: 1.05rem;
  }

  body:has(.mobile-app-nav) .unit-row, body:has(.mobile-app-nav) .unit-row.is-open {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 0;
  }

  body:has(.mobile-app-nav) .unit-row > div {
    padding: 18px 16px;
  }

  body:has(.mobile-app-nav) .unit-number {
    grid-row: 1 / span 3;
    padding-inline: 10px;
  }

  body:has(.mobile-app-nav) .unit-number strong {
    font-size: 2.25rem;
  }

  body:has(.mobile-app-nav) .unit-copy, body:has(.mobile-app-nav) .unit-sample, body:has(.mobile-app-nav) .unit-state {
    border-right: 0;
    grid-column: 2;
  }

  body:has(.mobile-app-nav) .unit-copy h3 {
    font-size: 1.4rem;
  }

  body:has(.mobile-app-nav) .unit-copy > p {
    font-size: .76rem;
  }

  body:has(.mobile-app-nav) .unit-sample {
    border-top: 1px solid var(--line-light);
    padding-block: 13px;
  }

  body:has(.mobile-app-nav) .unit-row.is-open .unit-sample {
    border-color: #343d46;
  }

  body:has(.mobile-app-nav) .unit-sample p {
    text-align: right;
    font-size: 1.4rem;
  }

  body:has(.mobile-app-nav) .unit-state {
    padding-top: 0;
  }

  body:has(.mobile-app-nav) .unit-state > a {
    border-radius: 10px;
    width: 100%;
    min-height: 50px;
  }

  body:has(.mobile-app-nav) .library-sequence {
    scrollbar-width: none;
    gap: 12px;
    margin-top: 18px;
    padding-bottom: 6px;
    display: flex;
    overflow-x: auto;
  }

  body:has(.mobile-app-nav) .library-sequence::-webkit-scrollbar {
    display: none;
  }

  body:has(.mobile-app-nav) .library-sequence li {
    white-space: nowrap;
    flex: none;
  }

  body:has(.mobile-app-nav) .book-two-band {
    grid-template-columns: 72px minmax(0, 1fr);
    margin-top: 0;
  }

  body:has(.mobile-app-nav) .book-two-marker {
    padding: 22px 14px;
  }

  body:has(.mobile-app-nav) .book-two-marker > strong {
    font-size: 3.2rem;
  }

  body:has(.mobile-app-nav) .book-two-band > div:nth-child(2) {
    padding: 28px 18px;
  }

  body:has(.mobile-app-nav) .book-two-band h2 {
    font-size: 1.8rem;
  }

  body:has(.mobile-app-nav) .book-two-state {
    grid-column: 1 / -1;
    padding: 16px 18px;
  }

  body:has(.mobile-app-nav) .unit-hub-intro {
    min-height: 0;
  }

  body:has(.mobile-app-nav) .unit-hub-title-field {
    min-height: 0;
    padding: 30px 18px 26px;
  }

  body:has(.mobile-app-nav) .unit-hub-title-field h1, body:has(.mobile-app-nav) .unit-framework-hub .unit-hub-title-field h1 {
    font-size: 3.1rem;
    line-height: .92;
  }

  body:has(.mobile-app-nav) .unit-hub-title-field p {
    margin-top: 16px;
    font-size: .8rem;
    line-height: 1.5;
  }

  body:has(.mobile-app-nav) .unit-hub-intro-action {
    border-radius: 11px;
    width: 100%;
    min-height: 52px;
    margin-top: 20px;
  }

  body:has(.mobile-app-nav) .unit-hub-arabic-field, body:has(.mobile-app-nav) .unit-framework-hub .unit-hub-arabic-field {
    min-height: 0;
    padding: 22px 18px;
  }

  body:has(.mobile-app-nav) .unit-hub-arabic-field > p {
    margin: 22px 0;
    font-size: 2rem;
  }

  body:has(.mobile-app-nav) .unit-hub-arabic-field > small {
    padding-top: 14px;
    font-size: .68rem;
  }

  body:has(.mobile-app-nav) .unit-lesson-desk > header {
    padding: 26px 18px 20px;
  }

  body:has(.mobile-app-nav) .unit-lesson-desk > header h2 {
    font-size: 1.9rem;
  }

  body:has(.mobile-app-nav) .unit-lesson-desk > header p {
    font-size: .76rem;
    line-height: 1.45;
  }

  body:has(.mobile-app-nav) .unit-lesson-desk > header > span {
    margin-top: 12px;
    font-size: .64rem;
  }

  body:has(.mobile-app-nav) .unit-lesson-progress {
    padding: 14px 18px;
  }

  body:has(.mobile-app-nav) .unit-lesson-list > li, body:has(.mobile-app-nav) .unit-lesson-list > li:first-child, body:has(.mobile-app-nav) .unit-assessment-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  body:has(.mobile-app-nav) .unit-lesson-list > li > *, body:has(.mobile-app-nav) .unit-assessment-row > * {
    padding: 17px 14px;
  }

  body:has(.mobile-app-nav) .unit-lesson-number, body:has(.mobile-app-nav) .unit-assessment-row > div:first-child {
    min-width: 0;
    padding-inline: 6px;
    overflow: hidden;
  }

  body:has(.mobile-app-nav) .unit-lesson-number > span, body:has(.mobile-app-nav) .unit-assessment-row > div:first-child > span {
    letter-spacing: 0;
    text-align: center;
    max-width: 100%;
    font-size: 0;
    line-height: 1;
  }

  body:has(.mobile-app-nav) .unit-lesson-number > span:after, body:has(.mobile-app-nav) .unit-assessment-row > div:first-child > span:after {
    content: "Lesson";
    font-family: var(--font-display);
    letter-spacing: .045em;
    text-transform: uppercase;
    font-size: .58rem;
    font-weight: 700;
    display: block;
  }

  body:has(.mobile-app-nav) .unit-lesson-list > li.is-complete .unit-lesson-number > span:after {
    content: "Done";
    font-size: 1rem;
  }

  body:has(.mobile-app-nav) .unit-assessment-row > div:first-child > span:after {
    content: "Test";
  }

  body:has(.mobile-app-nav) .unit-assessment-row.is-complete > div:first-child > span:after {
    content: "Passed";
  }

  body:has(.mobile-app-nav) .unit-lesson-number strong, body:has(.mobile-app-nav) .unit-assessment-row > div:first-child strong {
    width: 40px;
    height: 40px;
    margin-top: 7px;
  }

  body:has(.mobile-app-nav) .book-two-unit-hub .unit-lesson-list > li, body:has(.mobile-app-nav) .book-two-unit-hub .unit-lesson-list > li:first-child, body:has(.mobile-app-nav) .book-two-unit-hub .unit-assessment-row {
    grid-template-columns: 4.236rem minmax(0, 1fr);
  }

  body:has(.mobile-app-nav) .book-two-unit-hub .unit-lesson-number > span, body:has(.mobile-app-nav) .book-two-unit-hub .unit-assessment-row > div:first-child > span {
    font-size: var(--book-two-index-label);
    letter-spacing: 0;
    line-height: 1.618;
  }

  body:has(.mobile-app-nav) .book-two-unit-hub .unit-lesson-number > span:after, body:has(.mobile-app-nav) .book-two-unit-hub .unit-assessment-row > div:first-child > span:after {
    content: none;
    display: none;
  }

  body:has(.mobile-app-nav) .book-two-unit-hub .unit-lesson-number strong, body:has(.mobile-app-nav) .book-two-unit-hub .unit-assessment-row > div:first-child strong {
    font-size: var(--book-two-index-number);
    height: var(--book-two-index-disc);
    margin-top: var(--book-two-index-gap);
    width: var(--book-two-index-disc);
  }

  body:has(.mobile-app-nav) .unit-lesson-copy h3, body:has(.mobile-app-nav) .unit-assessment-row h3 {
    font-size: 1.42rem;
  }

  body:has(.mobile-app-nav) .unit-lesson-copy p, body:has(.mobile-app-nav) .unit-assessment-row > div:nth-child(2) p {
    font-size: .76rem;
  }

  body:has(.mobile-app-nav) .unit-lesson-arabic, body:has(.mobile-app-nav) .unit-assessment-row > p {
    padding-block: 13px;
    font-size: 1.45rem;
  }

  body:has(.mobile-app-nav) .unit-lesson-list > li > a, body:has(.mobile-app-nav) .unit-assessment-row > a {
    border-radius: 10px;
    min-height: 50px;
    margin: 0 14px 17px;
  }

  body:has(.mobile-app-nav) .foundations-command, body:has(.mobile-app-nav) .flashcard-command {
    gap: 18px;
    padding: 24px 18px;
  }

  body:has(.mobile-app-nav) .foundations-command h1, body:has(.mobile-app-nav) .flashcard-command h1 {
    font-size: 2.75rem;
  }

  body:has(.mobile-app-nav) .foundations-command p, body:has(.mobile-app-nav) .flashcard-command p {
    font-size: .78rem;
  }

  body:has(.mobile-app-nav) .foundations-total strong {
    font-size: 2rem;
  }

  body:has(.mobile-app-nav) .foundations-next {
    grid-template-columns: 58px minmax(0, 1fr);
    padding-inline: 18px;
  }

  body:has(.mobile-app-nav) .foundations-next-marker {
    min-height: 148px;
  }

  body:has(.mobile-app-nav) .foundations-next-marker strong {
    font-size: 3.1rem;
  }

  body:has(.mobile-app-nav) .foundations-next > div:nth-child(2) {
    padding: 24px 16px;
  }

  body:has(.mobile-app-nav) .foundations-next h2 {
    font-size: 1.75rem;
  }

  body:has(.mobile-app-nav) .foundations-next p {
    font-size: .75rem;
  }

  body:has(.mobile-app-nav) .foundations-next > a {
    border-radius: 11px;
    min-height: 54px;
    margin-bottom: 18px;
  }

  body:has(.mobile-app-nav) .foundations-ledger {
    padding: 28px 18px 32px;
  }

  body:has(.mobile-app-nav) .foundations-ledger h2 {
    font-size: 2rem;
  }

  body:has(.mobile-app-nav) .foundations-ledger > header {
    gap: 12px;
  }

  body:has(.mobile-app-nav) .foundations-ledger header p {
    font-size: .75rem;
  }

  body:has(.mobile-app-nav) .foundations-ledger header a {
    border-radius: 10px;
    width: 100%;
  }

  body:has(.mobile-app-nav) .foundations-ledger li > a {
    min-height: 88px;
  }

  body:has(.mobile-app-nav) .foundations-ledger li strong {
    font-size: 1.4rem;
  }

  body:has(.mobile-app-nav) .settings-workbench-header {
    background: var(--theme-surface);
    top: calc(58px + env(safe-area-inset-top));
    z-index: 12;
    gap: 16px;
    padding: 20px 16px 16px;
    position: sticky;
  }

  body:has(.mobile-app-nav) .settings-workbench-header h1 {
    font-size: 2.35rem;
  }

  body:has(.mobile-app-nav) .settings-workbench-header p {
    margin-top: 6px;
  }

  body:has(.mobile-app-nav) .settings-mobile-select {
    gap: 6px;
  }

  body:has(.mobile-app-nav) .settings-mobile-select select {
    border-radius: 12px;
    min-height: 50px;
  }

  body:has(.mobile-app-nav) .settings-section {
    padding: 30px 18px calc(36px + var(--mobile-app-bar));
  }

  body:has(.mobile-app-nav) .settings-section > header {
    gap: 12px;
    padding-bottom: 20px;
  }

  body:has(.mobile-app-nav) .settings-section > header h2 {
    font-size: 2.65rem;
  }

  body:has(.mobile-app-nav) .settings-section > header p {
    font-size: .78rem;
    line-height: 1.5;
  }

  body:has(.mobile-app-nav) .settings-section form {
    margin-top: 24px;
  }

  body:has(.mobile-app-nav) .settings-field-row input, body:has(.mobile-app-nav) .settings-field-grid select, body:has(.mobile-app-nav) .settings-delete input {
    border-radius: 10px;
  }

  body:has(.mobile-app-nav) .settings-path-choice > label, body:has(.mobile-app-nav) .settings-size-choice > label {
    min-height: 112px;
    padding: 18px;
  }

  body:has(.mobile-app-nav) .settings-toggle-list > label {
    gap: 18px;
    min-height: 82px;
  }

  body:has(.mobile-app-nav) .settings-primary, body:has(.mobile-app-nav) .settings-privacy-row > a, body:has(.mobile-app-nav) .settings-privacy-row button, body:has(.mobile-app-nav) .settings-policy-links a {
    border-radius: 10px;
  }

  body:has(.mobile-app-nav) .settings-notice {
    bottom: calc(var(--mobile-app-bar) + 10px);
  }
}

@media (max-width: 390px) {
  .mobile-app-nav a {
    font-size: .64rem;
  }

  body:has(.mobile-app-nav) .unit-hub-title-field h1, body:has(.mobile-app-nav) .unit-framework-hub .unit-hub-title-field h1 {
    font-size: 2.75rem;
  }

  body:has(.mobile-app-nav) .ledger-heading dl {
    overflow-x: auto;
  }

  body:has(.mobile-app-nav) .ledger-heading dl div {
    flex-basis: 92px;
  }

  body:has(.mobile-app-nav) .settings-workbench-header {
    top: calc(56px + env(safe-area-inset-top));
  }
}

.network-status-banner {
  background: var(--ink);
  border: 1px solid var(--saffron);
  color: var(--white);
  max-width: min(430px, 100vw - 28px);
  left: 50%;
  top: max(14px, env(safe-area-inset-top));
  z-index: 220;
  border-radius: 999px;
  align-items: center;
  gap: 11px;
  width: max-content;
  padding: 10px 17px 10px 12px;
  animation: .28s cubic-bezier(.16, 1, .3, 1) both network-status-arrive;
  display: flex;
  position: fixed;
  transform: translateX(-50%);
  box-shadow: 0 14px 36px #080c1147;
}

.network-status-banner > span {
  background: var(--saffron);
  border: 3px solid #ffffff29;
  border-radius: 50%;
  flex: none;
  width: 13px;
  height: 13px;
}

.network-status-banner > div {
  gap: 2px;
  display: grid;
}

.network-status-banner strong {
  font-size: .8rem;
  line-height: 1.2;
}

.network-status-banner small {
  color: #d4dae0;
  font-size: .66rem;
  line-height: 1.35;
}

.network-status-banner.is-restored {
  border-color: #72cf86;
}

.network-status-banner.is-restored > span {
  background: #72cf86;
}

html[data-network-status="offline"] [data-network-required]:disabled {
  cursor: not-allowed;
  filter: grayscale(.28);
  opacity: .48;
}

@keyframes network-status-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, -14px);
  }

  to {
    opacity: 1;
    transform: translate(-50%);
  }
}

@media (max-width: 680px) {
  .network-status-banner {
    top: max(8px, env(safe-area-inset-top));
    border-radius: 16px;
    padding: 10px 14px 10px 11px;
  }

  .network-status-banner strong {
    font-size: .78rem;
  }

  .network-status-banner small {
    font-size: .63rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-status-banner {
    animation: none;
  }
}

html[data-theme="dark"] body, html[data-theme="dark"] .curriculum-shell, html[data-theme="dark"] .unit-hub-shell, html[data-theme="dark"] .assessment-shell, html[data-theme="dark"] .dashboard-shell, html[data-theme="dark"] .settings-shell, html[data-theme="dark"] .settings-workbench, html[data-theme="dark"] .foundations-shell, html[data-theme="dark"] .foundation-lesson-shell, html[data-theme="dark"] .flashcards-shell, html[data-theme="dark"] .pricing-shell, html[data-theme="dark"] .admin-shell, html[data-theme="dark"] .unit-vocab-shell, html[data-theme="dark"] .reading-shell, html[data-theme="dark"] .onboarding-shell, html[data-theme="dark"] .email-preferences-page, html[data-theme="dark"] .book-two-plan-shell {
  background: var(--theme-canvas);
  color: var(--theme-text);
}

html[data-theme="dark"] :where(.platform-offer, .companion-story, .library-intro, .book-two-band, .book-two-unit-plan, .unit-lesson-list > li, .settings-workbench-header, .embedded-checkout-shell, .legal-document, .vocab-ledger button, .dashboard-course-position, .dashboard-book-map, .reading-command, .reading-role-rail, .reading-coach-rail, .reading-paragraph-coach, .reading-questions, .flashcard-deck-grid > button, .onboarding-script-level button, .admin-health, .admin-work-queue, .admin-workspace, .admin-race-grid > section, .admin-race-sources, .admin-registry, .admin-revenue-agents article, .admin-revenue-grid > section, .admin-revenue-queue, .admin-revenue-measurement, .foundation-lesson-bar, .foundation-form-desk, .foundation-response, .flashcard-decks, .unit-assessment-row, .dashboard-assessment-step, .reading-mode-tabs, .price-selector article:not(.is-best-value), .onboarding-script-level button) {
  background: var(--theme-surface);
  color: var(--theme-text);
}

html[data-theme="dark"] :where(.unit-row, .ledger-heading, .unit-lesson-desk, .dashboard-billing, .dashboard-foundations, .flashcard-empty.is-immersive, .settings-section, .pricing-workbench, .legal-shell) {
  background: var(--theme-canvas);
  color: var(--theme-text);
}

html[data-theme="dark"] :where(.settings-workbench-header p, .settings-section > header p, .settings-field-row label > span, .settings-field-grid label > span, .settings-delete label > span, .settings-record-row span, .settings-plan-ledger span, .settings-help, .settings-path-choice small, .settings-toggle-list small, .settings-membership-note p, .settings-privacy-row p, .settings-delete p, .library-intro > div > p, .ledger-heading p, .ledger-heading dt, .unit-copy > p, .unit-sample span, .unit-state > span, .unit-lesson-desk > header p, .unit-lesson-desk > header > span, .unit-lesson-copy p, .unit-lesson-copy small, .unit-lesson-number span, .dashboard-billing p, .dashboard-billing-status small, .dashboard-level-field p, .dashboard-lesson-map header p, .dashboard-book-map header p, .dashboard-book-map li small, .dashboard-desk header p, .dashboard-empty p, .flashcard-command p, .flashcard-empty p, .flashcard-footer span, .foundations-command p, .foundations-ledger header p, .foundations-ledger li p, .reading-command p, .reading-role-rail > p, .reading-coach-rail > p, .reading-paragraph-coach > p, .reading-role-options small, .reading-role-rail > small, .reading-coach-rail > small, .reading-response-panel form label, .reading-paragraph-coach form label, .reading-ai-turn p, .reading-gentle-review p, .reading-mode-finished p, .reading-questions header p, .reading-question-row legend small, .legal-document section p, .legal-document section li, .legal-document td, .pricing-note, .pricing-agreement) {
  color: var(--theme-muted);
}

html[data-theme="dark"] :where(.settings-field-row input, .settings-field-grid select, .settings-delete input, .settings-mobile-select select, .reading-response-panel input, .reading-paragraph-coach textarea, .admin-registry-controls input, .admin-registry-controls select) {
  background: var(--theme-surface-raised);
  color: var(--theme-text);
  border-color: #536170;
}

html[data-theme="dark"] :where(.settings-field-row input[readonly], .settings-mobile-select select:disabled) {
  color: #aeb8c3;
  background: #18212a;
}

html[data-theme="dark"] :where(.settings-section > header, .settings-field-row > label, .settings-field-grid > label, .settings-record-row, .settings-record-row > div, .settings-toggle-list, .settings-toggle-list > label, .settings-membership-note, .settings-privacy-row, .ledger-heading, .unit-row, .unit-row > div, .unit-lesson-desk > header, .unit-lesson-list > li, .unit-lesson-list > li > *, .dashboard-billing, .dashboard-billing > div, .dashboard-course-position, .dashboard-level-field, .dashboard-lesson-map ol, .dashboard-lesson-map li, .dashboard-book-map ol, .dashboard-book-map li, .flashcard-footer, .foundations-ledger li, .reading-command, .reading-questions, .legal-document td) {
  border-color: var(--theme-border);
}

html[data-theme="dark"] .settings-rail nav button[aria-current="page"] {
  background: var(--theme-surface-raised);
  color: var(--theme-text);
}

html[data-theme="dark"] .settings-rail nav button[aria-current="page"] small, html[data-theme="dark"] .settings-rail nav button small {
  color: var(--cobalt-tint);
}

html[data-theme="dark"] .settings-path-choice > label, html[data-theme="dark"] .settings-size-choice > label {
  border-color: #536170;
}

html[data-theme="dark"] .settings-path-choice > label:not(:has(input:checked)) {
  background: var(--theme-surface);
  color: var(--theme-text);
}

html[data-theme="dark"] .settings-delete {
  background: #241413;
  border-color: #8f4b44;
}

html[data-theme="dark"] .dashboard-level-field p strong, html[data-theme="dark"] .legal-document td:first-child, html[data-theme="dark"] .admin-user-select, html[data-theme="dark"] .admin-registry td:last-child button, html[data-theme="dark"] .admin-account-actions button, html[data-theme="dark"] .admin-account-actions a, html[data-theme="dark"] .admin-learning-map header a {
  color: var(--theme-text);
}

html[data-theme="dark"] :where(.dashboard-billing-actions .is-secondary, .dashboard-plan-change .is-secondary, .dashboard-curriculum-link, .dashboard-book-map header > a, .dashboard-desk header a, .dashboard-empty a, .flashcard-footer a, .settings-actions > a:not(.settings-primary)) {
  color: #9eb1ff;
  border-color: #6f8cff;
}

html[data-theme="dark"] .dashboard-book-map li a:hover, html[data-theme="dark"] .dashboard-billing-actions .is-secondary:hover, html[data-theme="dark"] .dashboard-plan-change .is-secondary:hover {
  background: #17213a;
}

html[data-theme="dark"] .unit-row:not(.is-open) .unit-number strong, html[data-theme="dark"] .dashboard-level-field > div span, html[data-theme="dark"] .dashboard-lesson-map li span, html[data-theme="dark"] .dashboard-curriculum-link, html[data-theme="dark"] .dashboard-book-map header > a {
  color: #9eb1ff;
}

html[data-theme="dark"] .unit-lesson-list > li:first-child, html[data-theme="dark"] .unit-row.is-open, html[data-theme="dark"] .continue-field, html[data-theme="dark"] .dashboard-foundations.is-primary, html[data-theme="dark"] .curriculum-foundations-band, html[data-theme="dark"] .settings-plan-ledger {
  background: var(--ink);
  color: var(--white);
}

html[data-theme="dark"] .conversation-vocabulary-rail li, html[data-theme="dark"] .vocab-person-cue {
  background: var(--theme-surface-raised);
  color: var(--theme-text);
}

html[data-theme="dark"] .flashcard-card, html[data-theme="dark"] .flashcard-card-response, html[data-theme="dark"] .flashcard-desk.is-immersive .flashcard-card .flashcard-ratings {
  background: var(--theme-surface);
  color: var(--theme-text);
}

html[data-theme="dark"] .flashcard-desk .flashcard-exit, html[data-theme="dark"] .flashcard-desk .flashcard-card-navigation button, html[data-theme="dark"] .flashcard-card .flashcard-ratings button {
  border-color: var(--theme-muted);
  color: var(--theme-text);
}

html[data-theme="dark"] .flashcard-desk > header, html[data-theme="dark"] .flashcard-session-progress > span, html[data-theme="dark"] .flashcard-desk .flashcard-card-navigation strong, html[data-theme="dark"] .flashcard-card .flashcard-answer span {
  color: var(--theme-muted);
}

html[data-theme="dark"] .flashcard-desk .flashcard-exit:hover, html[data-theme="dark"] .flashcard-desk .flashcard-card-navigation button:not(:disabled):hover, html[data-theme="dark"] .flashcard-card .flashcard-ratings button:hover {
  background: var(--theme-surface-raised);
  border-color: var(--theme-link);
  color: var(--theme-link);
}

html[data-theme="dark"] .flashcard-desk .flashcard-card-navigation button:disabled {
  border-color: var(--theme-border);
  color: var(--theme-muted);
}

html[data-theme="dark"] .flashcard-preferences > summary:hover, html[data-theme="dark"] .flashcard-preferences[open] > summary {
  border-color: var(--theme-link);
  color: var(--theme-link);
}

html[data-theme="dark"] .flashcard-desk {
  background: radial-gradient(circle at 12% 92%, #15b37e1a, transparent 30%), radial-gradient(circle at 94% 5%, #ff6c1314, transparent 28%), var(--theme-canvas);
  color: var(--theme-text);
}

html[data-theme="dark"] :where(.email-preferences-page p, .foundation-lesson-bar > div:nth-child(2) span, .foundation-lesson-progress > span, .foundation-form-desk dt, .foundation-answer span, .foundation-answer p, .foundation-response > div:first-child p, .flashcard-decks > header p, .flashcard-deck-copy small, .flashcard-desk > header, .flashcard-session-progress > span, .flashcard-desk .flashcard-card-navigation strong, .flashcard-card .flashcard-answer span, .flashcard-empty p, .flashcard-footer span, .unit-assessment-row > div:nth-child(2) p, .unit-assessment-row > div:nth-child(2) small, .assessment-state p, .assessment-readiness > div:first-child p, .assessment-readiness li, .assessment-prior span, .assessment-prior small, .assessment-verdict > p, .dashboard-assessment-step small, .reading-mode-tabs button:not([aria-selected="true"]), .reading-progress-mark span, .reading-gentle-review p, .reading-question-row legend small, .embedded-checkout-trust, .price-selector article small, .vocab-person-cue span, .vocab-ledger button > small) {
  color: var(--theme-muted);
}

html[data-theme="dark"] :where(.email-preferences-page section > a, .foundation-lesson-bar > a, .foundations-ledger header a, .foundation-row-status span, .foundation-form-desk h2, .flashcard-decks > header > span, .flashcard-deck-icon, .flashcard-deck-status, .reading-command span, .reading-role-rail > span, .reading-coach-rail > span, .reading-paragraph-coach > span, .reading-questions header > span, .reading-progress-mark strong, .reading-gentle-review strong, .reading-question-row legend > span, .price-selector article span, .pricing-includes > a, .pricing-note a, .pricing-agreement a, .assessment-prior strong, .dashboard-assessment-step > span, .dashboard-assessment-step > a, .vocab-person-cue strong) {
  color: var(--theme-link);
}

html[data-theme="dark"] :where(.flashcard-session-progress > strong, .flashcard-desk .flashcard-exit, .flashcard-desk .flashcard-card-navigation button, .flashcard-card .flashcard-ratings button, .flashcard-preferences > summary, .flashcard-preferences-panel, .foundation-form-desk header p, .foundation-form-desk dd, .foundation-answer strong, .foundation-response h2, .unit-assessment-row h3, .unit-assessment-row > p, .assessment-state h2, .assessment-readiness h2, .assessment-verdict h2, .dashboard-assessment-step strong) {
  color: var(--theme-text);
}

html[data-theme="dark"] :where(.flashcard-preferences > summary, .flashcard-preferences-panel, .flashcard-preference-options button) {
  background: var(--theme-surface-raised);
  color: var(--theme-text);
  border-color: #536170;
}

html[data-theme="dark"] .flashcard-preference-options button[aria-pressed="true"] {
  color: var(--theme-link);
  background: #17213a;
  border-color: #7895ff;
  box-shadow: inset 0 0 0 1px #7895ff;
}

html[data-theme="dark"] .flashcard-deck-grid > button:hover, html[data-theme="dark"] .foundations-ledger li > a:hover, html[data-theme="dark"] .vocab-ledger button:hover {
  background: #17213a;
}

html[data-theme="dark"] .onboarding-script-level button[aria-pressed="true"], html[data-theme="dark"] .reading-role-options button[data-selected="true"] {
  color: var(--theme-link);
  background: #17213a;
  border-color: #7895ff;
  box-shadow: inset 3px 0 #7895ff;
}

html[data-theme="dark"] .reading-answer-options button, html[data-theme="dark"] .foundation-ratings button {
  background: var(--theme-surface-raised);
  color: var(--theme-text);
  border-color: #536170;
}

html[data-theme="dark"] .flashcard-card .flashcard-answer p {
  color: var(--theme-link);
}

html[data-theme="dark"] .flashcard-card .flashcard-ratings button:nth-child(3), html[data-theme="dark"] .flashcard-card .flashcard-ratings button:nth-child(4) {
  color: var(--theme-success-text);
  border-color: #4d956f;
}

html[data-theme="dark"] .flashcard-card-shadow {
  background: #172029;
  border-color: #35414c;
}

html[data-theme="dark"] .flashcard-card-shadow-middle {
  background: #202b35;
}

html[data-theme="dark"] .foundation-gauge:before {
  background: var(--theme-surface);
}

html[data-theme="dark"] .foundation-lesson-progress > i, html[data-theme="dark"] .flashcard-session-progress > i {
  background: #33404c;
}

html[data-theme="dark"] :where(.foundation-speech-result.is-good strong, .foundation-achievement h2, .foundation-achievement p, .reading-question-row > p.is-correct, .dashboard-billing-notice, .dashboard-book-map li.is-complete small) {
  color: var(--theme-success-text) !important;
}

html[data-theme="dark"] :where(.foundation-message, .flashcard-card .flashcard-message, .reading-question-row > p.is-gentle) {
  color: var(--theme-warning-text);
}

html[data-theme="dark"] :where(.reading-error, .pricing-error) {
  color: var(--theme-danger-text) !important;
}

html[data-theme="dark"] :where(.dashboard-lesson-map li.is-locked, .dashboard-lesson-map li.is-locked small, .dashboard-book-map li > div, .flashcard-desk .flashcard-card-navigation button:disabled, .unit-assessment-locked) {
  color: var(--theme-disabled);
}

html[data-theme="dark"] :where(.settings-field-row input, .settings-field-grid select, .settings-delete input, .settings-mobile-select select, .reading-response-panel input, .reading-paragraph-coach textarea, .admin-registry-controls input, .admin-registry-controls select)::placeholder {
  color: var(--theme-subtle);
  opacity: 1;
}

html[data-theme="dark"] .mobile-app-nav {
  background: #071f7f;
  border-top-color: #fff3;
}

html[data-theme="dark"] body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-shell {
  background: var(--theme-canvas);
  color: var(--theme-text);
}

html[data-theme="dark"] body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-header {
  border-bottom-color: var(--theme-border);
  color: var(--theme-muted);
}

html[data-theme="dark"] body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-header :where(.flashcard-exit, .flashcard-card-navigation button:not(:disabled)) {
  border-color: var(--theme-subtle);
  color: var(--theme-text);
}

html[data-theme="dark"] body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-header :where(.vocabulary-app-source, .flashcard-card-navigation strong) {
  color: var(--theme-muted);
}

html[data-theme="dark"] body:has(.vocabulary-app-stage.is-card-deck) .vocabulary-app-header .flashcard-card-navigation button:disabled {
  border-color: var(--theme-border);
  color: var(--theme-disabled);
  opacity: 1;
}

html[data-theme="dark"] .unit-vocab-shell .vocab-session-header {
  border-bottom-color: var(--theme-border);
  color: var(--theme-muted);
}

html[data-theme="dark"] .unit-vocab-shell .vocab-session-header :where(.flashcard-exit, .flashcard-card-navigation button:not(:disabled)) {
  border-color: var(--theme-subtle);
  color: var(--theme-text);
}

html[data-theme="dark"] .unit-vocab-shell .vocab-session-header :where(.vocab-open-library, .flashcard-card-navigation strong) {
  color: var(--theme-muted);
}

html[data-theme="dark"] .unit-vocab-shell .vocab-session-header .flashcard-card-navigation button:disabled {
  border-color: var(--theme-border);
  color: var(--theme-disabled);
  opacity: 1;
}

html[data-theme="dark"] .reading-role-options button {
  color: var(--theme-text);
}

html[data-theme="dark"] .reading-role-options button b {
  border-color: var(--theme-link);
  color: var(--theme-link);
}

html[data-theme="dark"] .reading-role-options button small {
  color: var(--theme-muted);
}

html[data-theme="dark"] .reading-role-options button[data-selected="true"] :where(b, span) {
  color: var(--theme-text);
}

html[data-theme="dark"] .reading-role-options button[data-selected="true"] b {
  border-color: var(--theme-link);
}

@media (max-width: 820px) {
  html[data-theme="dark"] body:has(.dashboard-shell) {
    background: var(--theme-canvas);
  }

  html[data-theme="dark"] .app-header nav {
    background: #071f7f;
    box-shadow: 0 18px 44px #00000073;
  }

  html[data-theme="dark"] .dashboard-mobile-home {
    background: var(--theme-canvas);
    color: var(--theme-text);
  }

  html[data-theme="dark"] .dashboard-mobile-title h1, html[data-theme="dark"] .dashboard-mobile-actions > h2, html[data-theme="dark"] .dashboard-mobile-section-heading h2 {
    color: var(--theme-text);
  }

  html[data-theme="dark"] .dashboard-mobile-title p {
    color: var(--theme-muted);
  }

  html[data-theme="dark"] :where(.dashboard-mobile-actions, .dashboard-mobile-snapshot, .dashboard-mobile-path, .dashboard-mobile-actions > div, .dashboard-mobile-path-list) {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
  }

  html[data-theme="dark"] .dashboard-mobile-action-icon {
    color: var(--theme-link);
    background: #17213a;
  }

  html[data-theme="dark"] :where(.dashboard-mobile-action-link, .dashboard-mobile-section-heading, .dashboard-mobile-path-list > a, .dashboard-mobile-path-list > div) {
    color: var(--theme-text);
  }

  html[data-theme="dark"] :where(.dashboard-mobile-action-link + .dashboard-mobile-action-link, .dashboard-mobile-path-list > a + a, .dashboard-mobile-path-list > a + div, .dashboard-mobile-path-list > div + a, .dashboard-mobile-path-list > div + div) {
    border-color: var(--theme-border);
  }

  html[data-theme="dark"] :where(.dashboard-mobile-action-link small, .dashboard-mobile-section-heading p, .dashboard-mobile-stats span, .dashboard-mobile-path-list small) {
    color: var(--theme-muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-track, .theme-toggle-thumb {
    transition: none;
  }
}

::selection {
  background: var(--saffron);
  color: var(--ink);
}

input, textarea {
  caret-color: currentColor;
}

.conversation-composer label:focus-within {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.conversation-composer input::placeholder {
  color: #aab5c0;
}

.conversation-starters button, .book-two-conversation .conversation-starters button {
  letter-spacing: 0;
  min-height: 46px;
  font-size: 1.125rem;
  line-height: 1.6;
}

.conversation-starters > span, .conversation-composer label > span {
  font-size: .75rem;
}

.native-modal {
  background: none;
  border: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
}

.native-modal::backdrop {
  background: none;
}

.vocab-library-grid > button.is-current {
  color: var(--ink);
}

.vocab-library-grid > button.is-current > small {
  color: #303b47;
}

.vocab-library-grid > button > span {
  color: var(--saffron);
}

.vocab-library-grid > button.is-current > span {
  color: var(--ink);
}

.vocab-library > header > button {
  min-width: 60px;
  min-height: 44px;
  font-size: .875rem;
}

.inline-arabic {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  font-size: max(1.125rem, 1.15em);
  line-height: 1.75;
}

.home-menu-button {
  display: none;
}

.hero-entry-links {
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 18px;
  display: flex;
}

.hero-entry-links a {
  text-underline-offset: 5px;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  text-decoration: underline;
  display: inline-flex;
}

@media (max-width: 600px) {
  .home-menu-button {
    color: #fff;
    background: none;
    border: 1px solid #849bef;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    display: flex;
  }

  .home-menu-button svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7px;
    width: 20px;
    height: 20px;
  }

  .site-header .home-nav {
    background: var(--cobalt-deep);
    top: 100%;
    border-bottom: 1px solid #849bef;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    display: none;
    position: absolute;
    inset-inline: 0;
  }

  .site-header .home-nav.is-open {
    display: flex;
  }

  .site-header .home-nav a {
    min-height: 48px;
    font-size: 1rem;
    display: flex;
  }
}

.conversation-composer label {
  min-width: 0;
}

.conversation-composer textarea {
  resize: vertical;
  color: #f5f7fb;
  width: 100%;
  min-width: 0;
  max-height: 140px;
  font: 1.125rem/1.7 var(--font-arabic);
  overflow-wrap: anywhere;
  caret-color: var(--saffron);
  background: none;
  border: 0;
  padding: 0;
  display: block;
}

.conversation-composer textarea::placeholder {
  color: #bac6d5;
}

.conversation-composer textarea:focus {
  outline: none;
}

.conversation-bubble > p {
  overflow-wrap: anywhere;
}

.conversation-session-nav {
  padding: max(10px, env(safe-area-inset-top)) 20px 10px;
  background: var(--ink);
  color: #edf2fa;
  border-bottom: 1px solid #344255;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.conversation-session-nav a, .conversation-session-nav button {
  min-height: 44px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: .875rem;
}

.conversation-session-nav span {
  color: #becbdc;
  font-size: .8rem;
}

.conversation-session-nav button:hover, .conversation-session-nav a:hover {
  color: var(--saffron);
}

.conversation-scenario-label {
  font: 600 1rem/1.4 var(--font-ui);
  color: var(--theme-text);
  margin: 0 0 12px;
}

.conversation-setup {
  background: var(--theme-canvas);
  min-height: 100dvh;
  color: var(--theme-text);
  padding: max(24px, env(safe-area-inset-top)) 24px 40px;
}

.conversation-setup section {
  max-width: 620px;
  margin: clamp(24px, 6vh, 64px) auto;
}

.conversation-setup h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.conversation-setup p {
  color: var(--theme-muted);
  line-height: 1.7;
}

.conversation-setup fieldset {
  border: 0;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
  padding: 0;
  display: flex;
}

.conversation-setup legend {
  margin-bottom: 14px;
  font-weight: 600;
}

.conversation-setup fieldset label {
  border: 1px solid var(--theme-border);
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  display: flex;
}

.conversation-setup fieldset label:has(:checked) {
  border-color: var(--theme-link);
  background: var(--studio-blue);
}

.conversation-setup input {
  accent-color: var(--theme-link);
  width: 18px;
  height: 18px;
}

.conversation-brief {
  border-block: 1px solid var(--theme-border);
  padding: 20px 0;
}

.conversation-brief h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.conversation-brief h2:not(:first-child) {
  margin-top: 24px;
}

.conversation-brief p[lang="ar"] {
  font-family: var(--font-arabic);
  color: var(--theme-text);
  margin: 0;
  font-size: 1.3rem;
}

.conversation-begin {
  background: var(--cobalt);
  color: #fff;
  font: 600 1rem/1.5 var(--font-ui);
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 16px 24px;
}

.conversation-begin:hover {
  background: var(--cobalt-deep);
}

.conversation-setup :focus-visible, .conversation-session-nav :focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 4px;
}

@media (max-width: 420px) {
  .conversation-session-nav {
    gap: 8px;
    padding-inline: 12px;
  }

  .conversation-session-nav a, .conversation-session-nav button {
    font-size: .8rem;
  }
}

.app-header-spacer {
  display: none;
}

@media (max-width: 820px) {
  body:has(.mobile-app-nav) .app-header-spacer {
    height: calc(60px + env(safe-area-inset-top));
    flex: 0 0 calc(60px + env(safe-area-inset-top));
    display: block;
  }

  body:has(.mobile-app-nav) .app-header {
    width: 100%;
    height: calc(60px + env(safe-area-inset-top));
    min-height: calc(60px + env(safe-area-inset-top));
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-bottom: 8px;
    position: fixed;
    inset: 0 0 auto;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}
/* Learning studio: quiet surfaces, legible Arabic, and one obvious next action.
   Shared presentation only; lesson content, access rules, and progress stay in
   their existing components. The user brief takes priority over visual presets. */
:root {
  --cobalt: #365fc5;
  --cobalt-deep: #284ca8;
  --cobalt-dark: #1c3574;
  --ink: #192638;
  --ink-lift: #233247;
  --paper: #f7f9fc;
  --line-light: #e0e6ef;
  --theme-canvas: #f7f9fc;
  --theme-surface: #fff;
  --theme-surface-raised: #fff;
  --theme-text: #192638;
  --theme-muted: #58667b;
  --theme-border: #e0e6ef;
  --theme-link: #315abd;
  --studio-blue: #edf2fc;
  --studio-mint: #eff6f2;
  --studio-green: #37705b;
  --studio-radius: 14px;
}
html[data-theme="dark"] {
  --paper: #111a27;
  --line-light: #344255;
  --theme-canvas: #111a27;
  --theme-surface: #192536;
  --theme-surface-raised: #213047;
  --theme-text: #edf2fa;
  --theme-muted: #b5c2d4;
  --theme-border: #344255;
  --theme-link: #aac3ff;
  --studio-blue: #21324d;
  --studio-mint: #1c332f;
  --studio-green: #9bd6b9;
}
html { min-width: 0; scrollbar-color: #8796ae var(--theme-canvas); }
::selection { background: #c6d7fa; color: #192638; }
input, textarea { caret-color: var(--theme-link); }
h1, h2, h3 { text-wrap: balance; }
button, a { touch-action: manipulation; }
html:root :where(button, a, input, textarea, select, summary):focus-visible { outline: 3px solid var(--theme-link); outline-offset: 4px; box-shadow: 0 0 0 2px var(--theme-surface); }

/* Navigation stays consistent from the first visit to the lesson library. */
html:root :is(.site-header, .app-header, .unit-hub-header, .lesson-header, .assessment-header, .conversation-nav) { background: var(--theme-surface); color: var(--theme-text); border-bottom: 1px solid var(--theme-border); }
html:root :is(.site-header, .app-header) { padding-inline: max(28px, calc((100vw - 1200px) / 2)); }
html:root :is(.site-header, .app-header, .unit-hub-header, .lesson-header, .assessment-header, .conversation-nav, .legal-footer) .brand-wordmark-visible { filter: brightness(0) saturate(100%); opacity: .86; }
html[data-theme="dark"] :is(.site-header, .app-header, .unit-hub-header, .lesson-header, .assessment-header, .conversation-nav, .legal-footer) .brand-wordmark-visible { filter: none; opacity: 1; }
html:root :is(.site-header, .app-header) .wordmark { --wordmark-height: 27px; }
html:root .app-header nav { gap: clamp(12px, 1.6vw, 24px); }
html:root .app-header nav :is(a, button), html:root .site-header nav a { color: var(--theme-muted); font-size: .82rem; font-weight: 550; }
html:root .app-header nav :is(a, button):hover, html:root .app-header nav a[aria-current="page"] { color: var(--theme-link); border-bottom-color: var(--theme-link); }
html:root .app-header nav .app-header-signin, html:root .site-header nav .home-signin { background: var(--cobalt); color: white; border-radius: 9px; border: 0; min-height: 42px; padding: 10px 17px; gap: 12px; }
html:root .app-header nav .feedback-sound-toggle { color: var(--theme-muted); border-color: var(--theme-border); border-radius: 9px; }
html:root .app-header-theme-control { display: block; }
html:root .app-header nav .theme-toggle { color: var(--theme-muted); }
html:root :is(.app-header-menu-toggle, .home-menu-button) { color: var(--theme-text); border-color: var(--theme-border); border-radius: 8px; }
html:root .app-header-menu-toggle span { background: currentColor; }
html:root .legal-footer { background: var(--theme-surface); color: var(--theme-text); border-color: var(--theme-border); }
html:root .legal-footer :is(p, nav a) { color: var(--theme-muted); }
html:root .legal-footer-meta { border-color: var(--theme-border); }

/* The actual speaking demo, arranged in the order a learner uses it. */
html:root .speaking-demo { background: var(--theme-surface); color: var(--theme-text); padding: 24px 26px 20px; min-height: 0; }
.speaking-demo :is(.practice-path, .pronunciation-track), .speaking-demo::before, .speaking-demo::after { display: none; }
html:root .speaking-demo .demo-station > p { font-size: .78rem; text-transform: none; letter-spacing: 0; font-weight: 600; gap: 8px; }
html:root .speaking-demo .demo-station > p span { height: 23px; width: 23px; font-size: .7rem; background: var(--studio-blue); color: var(--theme-link); }
html:root .speaking-demo .listen-station { max-width: none; }
html:root .speaking-demo .listen-station > button { min-height: 56px; background: var(--studio-blue); border: 0; border-radius: 10px; padding-inline: 14px; color: var(--theme-link); }
html:root .speaking-demo .round-icon { width: 36px; height: 36px; border: 0; color: var(--theme-link); }
html:root .speaking-demo .listen-station small { color: var(--theme-muted); font-size: .7rem; }
html:root .speaking-demo .audio-wave i { background: var(--theme-link); animation: none; max-height: 24px; }
html:root .speaking-demo .phrase-focus { margin: 24px 0; }
html:root .speaking-demo .phrase-focus h2 { color: var(--theme-text); font-size: clamp(2rem, 3.25vw, 3.2rem); white-space: normal; text-wrap: wrap; line-height: 1.65; }
html:root .speaking-demo .phrase-focus > p { color: var(--theme-muted); font-size: .78rem; }
html:root .speaking-demo .phrase-focus .phrase-translation { color: var(--theme-text); font-size: .88rem; font-weight: 500; }
html:root .speaking-demo .demo-bottom-row { display: flex; flex-direction: column; gap: 18px; margin-top: 0; }
html:root .speaking-demo .speak-station { order: 0; display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 18px; align-items: center; }
html:root .speaking-demo .speak-station > p { grid-column: 1 / -1; }
html:root .speaking-demo .microphone-control { min-width: 0; margin: 0; }
html:root .speaking-demo .lesson-mic { height: 52px; width: 52px; }
html:root .speaking-demo .lesson-mic-face { background: var(--cobalt); border-color: var(--cobalt); color: white; width: 48px; height: 48px; }
html:root .speaking-demo .lesson-mic::before { background: transparent; border: 0; }
html:root .speaking-demo .lesson-mic.is-listening::before { background: var(--cobalt); }
html:root .speaking-demo .lesson-mic-label { color: var(--theme-muted); font-size: .65rem; letter-spacing: 0; text-transform: none; margin-top: 5px; }
html:root .speaking-demo .speak-station form { margin: 0; }
html:root .speaking-demo .speak-station label { font-size: .72rem; color: var(--theme-muted); }
html:root .speaking-demo .speak-station input { background: var(--theme-canvas); color: var(--theme-text); border-color: var(--theme-border); min-height: 46px; font-size: 1rem; }
html:root .speaking-demo .speak-station input::placeholder { color: var(--theme-muted); }
html:root .speaking-demo .speak-station form button { background: var(--cobalt); color: white; font-size: .78rem; }
html:root .speaking-demo .guidance-station { order: 1; }
html:root .speaking-demo .guidance-result { background: var(--studio-mint); border: 0; border-radius: 9px; padding: 12px 14px; min-height: 60px; gap: 12px; }
html:root .speaking-demo .guidance-result > strong { border: 0; color: var(--studio-green); font-size: 1.2rem; width: 28px; height: 32px; }
html:root .speaking-demo .guidance-result p { color: var(--theme-text); font-size: .78rem; line-height: 1.6; }
html:root .speaking-demo .guidance-result.error { background: var(--studio-blue); }
html:root .speaking-demo .guidance-station > small { color: var(--theme-muted); font-size: .66rem; line-height: 1.5; }
html:root .speaking-demo .privacy-note { color: var(--theme-muted); font-size: .64rem; line-height: 1.6; margin-top: 16px; }
html:root .speaking-demo .privacy-note :is(a, strong) { color: var(--theme-link); font-size: inherit; display: inline; }

/* Course and lesson overviews use the same quiet reading surface. */
html:root :is(.unit-hub-shell, .unit-lesson-desk, .dashboard-shell, .foundations-shell, .flashcards-shell) { color: var(--theme-text); background: var(--theme-canvas); }
html:root .unit-hub-intro { max-width: 1200px; margin: 36px auto 0; min-height: 0; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--theme-border); border-radius: 16px; overflow: hidden; }
html:root .unit-hub-title-field { background: var(--theme-surface); color: var(--theme-text); padding: 36px; }
html:root .unit-hub-title-field h1, html:root .unit-framework-hub .unit-hub-title-field h1 { font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.2; font-weight: 650; max-width: none; letter-spacing: -.025em; }
html:root .unit-hub-title-field p { color: var(--theme-muted); font-size: .95rem; line-height: 1.75; margin-top: 18px; }
html:root .unit-hub-intro-action { background: var(--cobalt); color: white; border-radius: 9px; min-height: 48px; font-size: .9rem; font-weight: 600; margin-top: 22px; }
html:root .unit-hub-arabic-field { background: var(--studio-blue); color: var(--theme-text); padding: 32px; }
html:root .unit-hub-arabic-field > div span { color: var(--theme-link); font-size: .85rem; text-transform: none; }
html:root .unit-hub-arabic-field > p { font-size: 2.5rem; line-height: 1.7; margin: 24px 0; }
html:root .unit-hub-arabic-field > small { color: var(--theme-muted); border-color: var(--theme-border); line-height: 1.65; }
html:root .unit-lesson-desk { max-width: 1200px; margin: 0 auto; padding-bottom: 48px; }
html:root .unit-lesson-desk > header { padding: 38px 0 24px; }
html:root .unit-lesson-desk > header h2 { font-size: 1.8rem; text-transform: none; letter-spacing: -.02em; }
html:root .unit-lesson-desk > header p { color: var(--theme-muted); font-size: .9rem; line-height: 1.65; }
html:root .unit-lesson-progress { padding: 18px 20px; border: 1px solid var(--theme-border); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--studio-blue); }
html:root .unit-lesson-progress > strong, html:root .unit-lesson-progress > a { color: var(--theme-link); }
html:root .unit-lesson-list { border: 1px solid var(--theme-border); border-bottom: 0; }
html:root .unit-lesson-list > li, html:root .unit-lesson-list > li:first-child, html:root .unit-assessment-row { background: var(--theme-surface); color: var(--theme-text); border-color: var(--theme-border); grid-template-columns: 82px minmax(0, 1fr) minmax(150px, .55fr) 180px; min-height: 150px; }
html:root .unit-lesson-list > li:first-child { background: var(--studio-blue); }
html:root .unit-lesson-list > li > *, html:root .unit-lesson-list > li:first-child > *, html:root .unit-assessment-row > * { border-right: 0; padding: 20px 16px; }
html:root .unit-lesson-number span, html:root .unit-lesson-list > li:first-child .unit-lesson-number span { color: var(--theme-muted); }
html:root .unit-lesson-number strong, html:root .unit-lesson-list > li:first-child .unit-lesson-number strong { color: var(--theme-link); border-color: var(--theme-border); font-size: 1.15rem; }
html:root .unit-lesson-list > li.is-complete .unit-lesson-number strong { color: white; border-color: var(--success); }
html:root .unit-lesson-copy h3, html:root .unit-assessment-row h3 { font-size: 1.15rem; font-weight: 650; text-transform: none; letter-spacing: 0; line-height: 1.4; }
html:root .unit-lesson-copy :is(p, small), html:root .unit-lesson-list > li:first-child .unit-lesson-copy :is(p, small), html:root .unit-assessment-row > div:nth-child(2) :is(p, small) { color: var(--theme-muted); line-height: 1.7; }
html:root .unit-lesson-copy small { margin-top: 10px; }
html:root .unit-lesson-list > li > a, html:root .unit-lesson-list > li:first-child > a, html:root .unit-assessment-row > a { background: var(--cobalt); color: white; border-radius: 8px; font-size: .8rem; font-weight: 600; margin: 18px; padding: 12px 16px; min-height: 46px; }
html:root .unit-lesson-list > li > a:hover, html:root .unit-hub-intro-action:hover { background: var(--cobalt-deep); }
html:root .unit-lesson-arabic { font-size: 1.65rem; }
html:root .unit-assessment-row { border: 1px solid var(--theme-border); border-top: 0; border-radius: 0 0 12px 12px; background: var(--studio-blue); }
html:root .book-two-unit-hub .unit-lesson-number strong { font-size: var(--book-two-index-number); }

/* The dashboard prioritizes returning to the next unfinished lesson. */
html:root .dashboard-command-bar { background: var(--theme-canvas); color: var(--theme-text); max-width: 1200px; margin: auto; padding: 36px 0; gap: 24px; }
html:root .dashboard-command-bar h1 { font-size: 2rem; line-height: 1.3; letter-spacing: -.03em; }
html:root .dashboard-command-bar > div:first-child p { color: var(--theme-muted); font-size: .9rem; line-height: 1.6; }
html:root .dashboard-account-line { gap: 14px; }
html:root .dashboard-account-line > div { border-color: var(--theme-border); padding-right: 14px; }
html:root .dashboard-account-line span, html:root .dashboard-account-line.has-full-access span { font-size: .8rem; text-transform: none; color: var(--theme-link); }
html:root .dashboard-account-line > small { color: var(--theme-muted); }
html:root .dashboard-account-line .dashboard-plan-link { color: var(--theme-muted); border-color: var(--theme-border); border-radius: 8px; background: var(--theme-surface); }
html:root .dashboard-course-position { max-width: 1200px; border: 1px solid var(--theme-border); border-radius: 14px; background: var(--theme-surface); overflow: hidden; }
html:root .dashboard-level-field { background: var(--studio-blue); border-right: 0; padding: 32px; }
html:root .dashboard-level-field > div { align-items: center; gap: 10px; }
html:root .dashboard-level-field > div span { font-size: .9rem; padding: 0; text-transform: none; color: var(--theme-link); }
html:root .dashboard-level-field > div strong { font-size: 1.4rem; line-height: 1.4; color: var(--theme-link); }
html:root .dashboard-level-field h2 { font-size: 1.9rem; line-height: 1.3; letter-spacing: -.025em; margin-top: 22px; }
html:root .dashboard-level-field p { font-size: .9rem; line-height: 1.75; color: var(--theme-muted); }
html:root .dashboard-level-field p strong { color: var(--theme-text); }
html:root .dashboard-level-field > a { background: var(--cobalt); color: white; border-radius: 9px; font-size: .9rem; min-height: 48px; font-weight: 600; }
html:root .dashboard-level-field > .dashboard-unit-overview { background: transparent; color: var(--theme-link); margin-top: 8px; padding: 0; font-size: .8rem; font-weight: 500; }
html:root .dashboard-lesson-map { padding: 32px; }
html:root .dashboard-lesson-map > header { display: block; }
html:root .dashboard-lesson-map h2 { font-size: 1.25rem; line-height: 1.4; }
html:root .dashboard-lesson-map header p { text-align: left; margin-top: 8px; max-width: none; line-height: 1.65; color: var(--theme-muted); }
html:root .dashboard-lesson-map li a { font-size: .83rem; font-weight: 550; }
html:root .dashboard-lesson-map li span { border-color: var(--theme-border); color: var(--theme-link); font-size: .78rem; }
html:root .dashboard-assessment-step { background: var(--studio-blue); }
html:root .dashboard-assessment-step > a, html:root .dashboard-assessment-step > span { color: var(--theme-link); }
html:root .dashboard-state { max-width: 660px; margin: 64px auto; border: 1px solid var(--theme-border); border-radius: 14px; padding: 40px; background: var(--theme-surface); color: var(--theme-text); }
html:root .dashboard-state h1 { font-size: 2rem; line-height: 1.3; max-width: none; }
html:root .dashboard-state p { color: var(--theme-muted); line-height: 1.7; }
html:root .dashboard-state :is(a, button) { background: var(--cobalt); color: white; border-radius: 9px; }
html:root :is(.dashboard-billing, .dashboard-book-map, .dashboard-desk, .review-strip) { max-width: 1200px; margin-inline: auto; }
html:root .dashboard-billing { margin-top: 32px; border: 1px solid var(--theme-border); border-radius: 12px; padding-inline: 24px; }
html:root .dashboard-billing h2 { font-size: 1.3rem; }
html:root .dashboard-billing-status strong { font-size: 1.2rem; }
html:root .dashboard-billing-actions :is(a, button) { border-radius: 8px; }

/* Reading Foundations shares the same hierarchy as the book courses. */
html:root :is(.foundations-command, .flashcard-command) { background: var(--theme-canvas); color: var(--theme-text); max-width: 1200px; margin: auto; padding: 40px 0 32px; gap: 30px; }
html:root :is(.foundations-command, .flashcard-command) h1 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.2; letter-spacing: -.025em; }
html:root :is(.foundations-command, .flashcard-command) p, html:root .foundations-total span { color: var(--theme-muted); font-size: .9rem; line-height: 1.65; }
html:root .foundations-total strong { font-size: 1.3rem; }
html:root .foundations-total > div { background: var(--theme-border); }
html:root .foundations-total i { background: var(--cobalt); }
html:root .foundations-next { max-width: 1200px; margin: auto; padding-inline: 28px; border: 1px solid var(--theme-border); border-radius: 14px; background: var(--studio-blue); color: var(--theme-text); min-height: 184px; grid-template-columns: 90px minmax(0, 1fr) auto; }
html:root .foundations-next-marker { border-color: var(--theme-border); }
html:root .foundations-next-marker span, html:root .foundations-next small { color: var(--theme-link); text-transform: none; font-size: .8rem; }
html:root .foundations-next-marker strong { font-size: 2.7rem; line-height: 1.3; }
html:root .foundations-next h2 { font-size: 1.6rem; line-height: 1.3; }
html:root .foundations-next p { color: var(--theme-muted); font-size: .9rem; line-height: 1.7; }
html:root .foundations-next > a { background: var(--cobalt); color: white; border-radius: 9px; min-height: 48px; min-width: 0; padding: 14px 22px; font-size: .87rem; font-weight: 600; }
html:root .foundations-ledger { max-width: 1200px; margin: auto; padding: 40px 0 56px; }
html:root .foundations-ledger h2 { font-size: 1.65rem; }
html:root .foundations-ledger li strong { font-size: 1.15rem; font-weight: 600; }
html:root .foundations-ledger li p { font-size: .9rem; line-height: 1.65; }
html:root .foundations-ledger header a { border-radius: 9px; font-size: .85rem; }
html:root .foundations-ledger li > a:hover { background: var(--studio-blue); }
html:root .foundations-signin { background: var(--studio-blue); color: var(--theme-text); }
html:root .foundations-signin h2 { font-size: 1.4rem; }
html:root .foundations-signin p { color: var(--theme-muted); font-size: .9rem; }
html:root .foundations-signin a { background: var(--cobalt); color: white; border-radius: 9px; font-size: .9rem; }

/* Focused practice retains its dark canvas, with quieter supporting chrome. */
html:root .lesson-rail { background: var(--theme-surface); color: var(--theme-text); border-right: 1px solid var(--theme-border); padding: 32px 24px; }
html:root .lesson-rail-copy h1 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.3; max-width: none; letter-spacing: -.02em; }
html:root .lesson-rail-copy p { color: var(--theme-muted); font-size: .88rem; line-height: 1.7; }
html:root .lesson-rail li { border-color: var(--theme-border); }
html:root .lesson-rail li strong { font-size: .9rem; text-transform: none; letter-spacing: 0; line-height: 1.5; }
html:root .lesson-rail li small { font-size: .72rem; }
html:root .lesson-rail li > button { min-height: 56px; }
html:root .lesson-rail li > button:disabled { color: var(--theme-muted); }
html:root .lesson-rail li > button.is-active { background: var(--studio-blue); color: var(--theme-link); border-radius: 9px; }
.lesson-stage::before, .lesson-stage::after { display: none; }
html:root .lesson-next { border-radius: 9px; }
html:root :is(.lesson-audio-label, .lesson-mic-label) { font-size: .8rem; text-transform: none; letter-spacing: 0; }

@media (max-width: 1280px) {
  html:root :is(.unit-hub-intro, .unit-lesson-desk, .dashboard-command-bar, .dashboard-course-position, .foundations-command, .flashcard-command, .foundations-next, .foundations-ledger) { margin-inline: 28px; }
  html:root .dashboard-command-bar { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  html:root :is(.site-header, .app-header) { padding-inline: 20px; }
  html:root .app-header nav, html:root .site-header .home-nav { background: var(--theme-surface); border-color: var(--theme-border); color: var(--theme-text); }
  html:root .app-header nav { gap: 4px; }
  html:root .app-header nav :is(a, button) { color: var(--theme-text); font-size: .92rem; }
  html:root .app-header-sound-label { color: var(--theme-muted); }
  html:root .app-header-theme-control { display: block; }
  html:root .mobile-app-nav { background: var(--theme-surface); border-color: var(--theme-border); }
  html:root .mobile-app-nav a { color: var(--theme-muted); }
  html:root .mobile-app-nav a[aria-current="page"] { color: var(--theme-link); background: var(--studio-blue); }
  html:root .dashboard-command-bar { display: none; }
  html:root .dashboard-mobile-home { background: var(--theme-canvas); }
  html:root .dashboard-mobile-title h1 { font-size: 2rem; letter-spacing: -.025em; }
  html:root .dashboard-mobile-continue { background: var(--studio-blue); color: var(--theme-text); border: 1px solid var(--theme-border); border-radius: 14px; }
  html:root .dashboard-mobile-continue h2 { font-size: 1.7rem; line-height: 1.3; }
  html:root .dashboard-mobile-continue p { color: var(--theme-muted); }
  html:root .dashboard-mobile-unit-line :is(span, strong) { color: var(--theme-link); }
  html:root .dashboard-mobile-continue > a { background: var(--cobalt); color: white; border-radius: 9px; }
  html:root .dashboard-mobile-progress { background: var(--theme-border); }
  html:root .dashboard-mobile-progress i { background: var(--cobalt); }
  html:root .unit-hub-intro { grid-template-columns: 1fr; margin-top: 24px; }
  html:root .unit-hub-title-field { padding: 28px; }
  html:root .unit-hub-arabic-field { padding: 24px 28px; }
  html:root .unit-hub-arabic-field > p { font-size: 2rem; margin: 18px 0; }
  html:root .unit-lesson-desk > header { display: block; }
  html:root .unit-lesson-desk > header > span { display: block; margin-top: 12px; }
  html:root .unit-lesson-list > li, html:root .unit-lesson-list > li:first-child, html:root .unit-assessment-row { grid-template-columns: 64px minmax(0, 1fr); padding: 12px; }
  html:root .unit-lesson-list > li > *, html:root .unit-assessment-row > * { padding: 12px 8px; }
  html:root .unit-lesson-number { grid-row: 1 / span 3; justify-content: flex-start; padding-top: 16px; }
  html:root .unit-lesson-copy, html:root .unit-lesson-arabic, html:root .unit-lesson-list > li > a { grid-column: 2; }
  html:root .unit-lesson-arabic { border-top: 1px solid var(--theme-border); font-size: 1.5rem; text-align: start; }
  html:root .unit-lesson-list > li > a { margin: 8px; justify-self: start; }
  html:root .unit-assessment-row > :first-child { grid-row: 1 / span 3; }
  html:root .unit-assessment-row > :not(:first-child) { grid-column: 2; }
  html:root .unit-assessment-row > a { margin: 8px; justify-self: start; }
  html:root .foundations-command { display: block; }
  html:root .foundations-total { margin-top: 24px; max-width: 300px; }
  html:root .foundations-next { padding: 24px; grid-template-columns: 1fr; gap: 18px; }
  html:root .foundations-next-marker { display: none; }
  html:root .foundations-next > div:nth-child(2) { padding: 0; }
  html:root .foundations-next > a { justify-self: start; }
  html:root .foundations-ledger > header { display: block; }
  html:root .foundations-ledger header a { display: inline-flex; margin-top: 18px; }
  html:root .foundations-signin { grid-template-columns: 1fr; padding: 28px; }
  html:root .foundations-signin a { justify-self: start; }
  html:root .dashboard-state { margin: 32px 20px; padding: 28px; }
  html:root .dashboard-state h1 { font-size: 1.65rem; }
}
@media (max-width: 520px) {
  html:root :is(.unit-hub-intro, .unit-lesson-desk, .foundations-command, .flashcard-command, .foundations-next, .foundations-ledger) { margin-inline: 20px; }
  html:root .speaking-demo { padding: 20px 18px 18px; }
  html:root .speaking-demo .phrase-focus h2 { font-size: 2rem; }
  html:root .speaking-demo .speak-station { grid-template-columns: 65px minmax(0, 1fr); gap: 10px; }
  html:root .unit-lesson-progress { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The shared theme control is also available before sign-in. */
html:root :is(.site-header, .app-header) nav .theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; min-height: 42px; padding: 0; border: 1px solid var(--theme-border); border-radius: 9px; background: var(--theme-surface); color: var(--theme-muted); }
html:root :is(.site-header, .app-header) .theme-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:root :is(.site-header, .app-header) .theme-toggle-track { display: flex; align-items: center; justify-content: center; background: transparent; border: 0; width: 24px; height: 24px; flex: 0 0 24px; padding: 0; }
html:root :is(.site-header, .app-header) .theme-toggle-thumb { display: flex; align-items: center; justify-content: center; background: transparent; color: currentColor; transform: none; width: 22px; height: 22px; }
html:root :is(.site-header, .app-header) .theme-toggle-thumb svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html:root .site-header .home-nav { align-items: center; }
@media (max-width: 820px) {
  html:root :is(.site-header, .app-header) nav .theme-toggle { width: 100%; justify-content: space-between; padding: 10px 12px; }
  html:root :is(.site-header, .app-header) .theme-toggle-label { position: static; width: auto; height: auto; clip-path: none; overflow: visible; margin: 0; }
  html:root .site-header .home-nav { align-items: stretch; }
}

/* Account entry and plan selection are part of the same learning experience. */
html:root .account-shell, html:root .account-stage-login { background: var(--theme-canvas); color: var(--theme-text); }
html:root .login-panel { background: var(--theme-surface); color: var(--theme-text); border: 1px solid var(--theme-border); border-radius: 14px; padding: clamp(26px, 4vw, 42px); }
html:root .login-panel h1 { font-size: 2rem; line-height: 1.25; }
html:root .login-panel :is(label, .login-intro > p, .login-divider, small) { color: var(--theme-muted); }
html:root .login-panel input { background: var(--theme-canvas); color: var(--theme-text); border-color: var(--theme-border); border-radius: 8px; }
html:root .login-panel input::placeholder { color: var(--theme-muted); }
html:root .login-submit { background: var(--cobalt); color: white; border-radius: 9px; }
html:root .google-signin { color: var(--theme-text); border-color: var(--theme-border); border-radius: 9px; }
html:root .login-mode-switch { border-color: var(--theme-border); }
html:root .login-mode-switch button { color: var(--theme-muted); font-size: .9rem; }
html:root .login-mode-switch button[aria-pressed="true"] { border-color: var(--theme-link); color: var(--theme-link); }
html:root .login-password-label button, html:root .login-back, html:root .login-return-link, html:root .login-panel small a { color: var(--theme-link); }
html:root .login-message { color: var(--studio-green); }
html:root .login-message.is-error { color: #ad392f; }
html[data-theme="dark"] .login-message.is-error { color: #ffaaa2; }
html:root .login-divider::before, html:root .login-divider::after { background: var(--theme-border); }
html:root .pricing-intro { max-width: 1200px; margin: auto; background: var(--theme-canvas); color: var(--theme-text); padding: 48px 28px 36px; gap: 48px; }
html:root .pricing-intro h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.2; max-width: 20ch; }
html:root .pricing-intro div > p { color: var(--theme-muted); font-size: .95rem; margin-top: 20px; }
html:root .pricing-intro > p { color: var(--theme-link); border-color: var(--theme-border); font-size: 2.3rem; }
html:root .pricing-workbench { padding-top: 28px; }
html:root .pricing-includes h2 { font-size: 1.5rem; line-height: 1.4; }
html:root .pricing-includes li { color: var(--theme-muted); font-size: .9rem; line-height: 1.7; }
html:root .price-selector article strong { font-size: 3rem; line-height: 1.2; }
html:root .price-selector article.is-best-value { margin-inline: 0; background: var(--studio-blue); color: var(--theme-text); border-radius: 12px; border-color: var(--theme-border); }
html:root .price-selector article span, html:root .pricing-includes > a, html:root .pricing-note a { color: var(--theme-link); }
html:root .price-selector article small, html:root .pricing-note, html:root .pricing-agreement { color: var(--theme-muted); }
html:root .price-selector article button { background: var(--cobalt); color: white; border-radius: 8px; font-size: .86rem; }
html:root .settings-workbench-header h1 { font-size: 2.1rem; line-height: 1.3; }
html:root .settings-section > header h2 { font-size: 1.7rem; line-height: 1.35; }
html:root .onboarding-panel > header h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.25; max-width: 20ch; }
html:root .legal-hero h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.15; max-width: 16ch; }
@media (max-width: 760px) {
  html:root .pricing-intro { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  html:root .pricing-intro > p { font-size: 1.7rem; padding-block: 20px; }
  html:root .pricing-workbench { padding-top: 8px; }
}

html:root .unit-module-rail { background: var(--theme-surface); color: var(--theme-text); border-right: 1px solid var(--theme-border); padding: 32px 24px; }
html:root .unit-module-rail h1 { font-size: 2rem; line-height: 1.4; letter-spacing: -.02em; max-width: none; }
html:root .unit-module-rail > div:first-child > p, html:root .unit-module-rail > p { color: var(--theme-muted); line-height: 1.75; }
html:root .unit-module-rail > a { color: var(--theme-link); border-color: var(--theme-border); min-height: 44px; line-height: 1.65; }
html:root .unit-module-progress { background: var(--theme-border); }
html:root .unit-module-progress span { background: var(--cobalt); }
@media (max-width: 820px) {
  html:root .home-menu-button { background: transparent; border: 1px solid var(--theme-border); min-height: 44px; padding: 8px 12px; display: flex; gap: 10px; align-items: center; }
  html:root .home-menu-button svg { width: 20px; height: 20px; }
  html:root .site-header .home-nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 16px 24px 24px; border-bottom: 1px solid var(--theme-border); gap: 4px; flex-direction: column; }
  html:root .site-header .home-nav.is-open { display: flex; }
  html:root .site-header .home-nav a { min-height: 48px; font-size: .95rem; }
}

/* Native popovers keep navigation usable before React starts. */
html:root :is(.app-header, .site-header) nav[popover] {
  inset: auto;
  margin: 0;
  width: auto;
  height: auto;
  overflow: visible;
  border: 0;
  padding: 0;
  color: inherit;
  background: var(--theme-surface);
}
@media (min-width: 821px) {
  html:root :is(.app-header, .site-header) nav[popover] { display: flex; position: static; }
}
@media (max-width: 820px) {
  html:root :is(.app-header, .site-header) nav[popover] { display: none; }
  html:root :is(.app-header, .site-header) nav[popover]:popover-open {
    display: flex;
    position: fixed;
    inset: 64px 12px auto;
    width: auto;
    max-height: calc(100dvh - 80px - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 18px;
    border: 1px solid var(--theme-border);
    border-radius: var(--studio-radius);
    box-shadow: 0 12px 32px rgb(15 30 55 / 14%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  html:root .app-header:has(nav:popover-open) .app-header-menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  html:root .app-header:has(nav:popover-open) .app-header-menu-toggle span:nth-child(2) { opacity: 0; }
  html:root .app-header:has(nav:popover-open) .app-header-menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  html:root :is(.app-header, .site-header) nav[popover]::backdrop { background: transparent; }
}

/* Access screens use the same quiet surfaces as settings and the dashboard. */
.app-header-back { display: none; }
.conversation-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; color: inherit; border-radius: 8px; }
.conversation-back svg, .app-header-back svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 820px) {
  html:root .app-header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  html:root .app-header > .wordmark { justify-self: center; --wordmark-height: 25px; }
  html:root .app-header > .app-header-menu-toggle { width: 44px; height: 44px; }
  .app-header-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 8px; color: var(--theme-text); }
  .app-header-back:hover, .conversation-back:hover { background: var(--theme-surface-raised); }
  .app-header-back:active, .conversation-back:active { opacity: .65; }
}

html:root .unit-access-state {
  min-height: 0;
  width: min(640px, calc(100% - 40px));
  margin: clamp(28px, 7vh, 72px) auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--theme-border);
  border-radius: var(--studio-radius);
  background: var(--theme-surface);
  color: var(--theme-text);
}
html:root .unit-access-state h1 {
  max-width: none;
  font-family: var(--font-ui);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
html:root .unit-access-state p { color: var(--theme-muted); margin-top: 18px; line-height: 1.65; }
html:root .unit-access-state a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  margin-top: 24px;
  border-radius: 9px;
  background: var(--cobalt);
  color: white;
  text-align: center;
}

/* Recovery actions stay visible and usable on signed-out and failed-load screens. */
html:root .flashcard-command.is-recovery { align-items: flex-start; flex-direction: column; gap: 18px; }
html:root .recovery-action {
  align-items: center;
  background: var(--cobalt);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  text-decoration: none;
}
html:root .foundations-command .recovery-action { margin-top: 20px; }
/* Shared conversation styles load with the app shell, including direct lesson visits. */
.conversation-immersive .conversation-scenario-rail,
.conversation-immersive .conversation-vocabulary-rail {
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #080c11);
}
.conversation-immersive .conversation-scenario-rail summary,
.conversation-immersive .conversation-vocabulary-rail summary {
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #080c11);
}
.conversation-immersive .conversation-scenario-rail summary::after,
.conversation-immersive .conversation-vocabulary-rail summary::after { color: var(--theme-link, #082baa); }
.conversation-immersive .conversation-scenario-rail h1 + p,
.conversation-immersive .conversation-vocabulary-rail h2 + p,
.conversation-immersive .conversation-goal,
.conversation-immersive .conversation-vocabulary-rail li span[lang="ar"] { color: var(--theme-muted, #485059); }
.conversation-immersive .conversation-allowance { color: #bcc7d2; flex-wrap: wrap; font-size: .8125rem; line-height: 1.55; }
.conversation-immersive .conversation-allowance span[lang="ar"] { font-family: var(--font-arabic); font-size: 1rem; line-height: 1.7; letter-spacing: 0; }
.conversation-immersive .conversation-allowance a { color: #dbe2ec; font-size: .8125rem; }
.conversation-immersive .conversation-composer label > span { font-size: .875rem; line-height: 1.6; }
.conversation-immersive .conversation-feedback { font-family: var(--font-arabic); font-size: .9375rem; line-height: 1.8; }
.conversation-immersive .conversation-thread-panel > header > span { font-size: .875rem; line-height: 1.6; }
.conversation-immersive .conversation-message-meta { font-size: .8125rem; line-height: 1.6; }
.conversation-immersive .conversation-message-meta strong { font-size: inherit; }


/* A single viewport owns the conversation, including the reply area. */
.conversation-immersive { position: fixed; inset: var(--conversation-top, 0px) 0 auto; z-index: 100; height: var(--conversation-height, 100dvh); min-height: 0; overflow: hidden; background: var(--ink); }
.conversation-immersive .conversation-app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.conversation-immersive .conversation-layout { flex: 1; height: auto; min-height: 0; grid-template-columns: minmax(200px, 22%) minmax(0, 1fr) minmax(200px, 22%); }
.conversation-immersive .conversation-thread-panel { min-height: 0; min-width: 0; overflow: hidden; }
.conversation-immersive .conversation-thread { min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
.conversation-immersive .conversation-scenario-rail h1 { color: var(--theme-text); line-height: 1.7; }
.conversation-immersive .conversation-vocabulary-rail { position: static; transform: none; width: auto; max-width: none; margin: 0; }
.conversation-immersive .conversation-vocabulary-rail::before { display: none; }
.conversation-immersive .conversation-composer { position: static; min-width: 0; max-height: 48dvh; overflow-y: auto; }
.conversation-immersive .conversation-message[hidden] { display: none; }
.conversation-immersive .conversation-thread[data-history="false"] .conversation-message-latest { max-width: 100%; margin: 28px auto; }
.conversation-immersive .conversation-thread-panel > header { min-height: 58px; }
@media (max-width: 1000px) {
  .conversation-immersive .conversation-layout { display: flex; flex-direction: column; }
  .conversation-immersive .conversation-thread-panel { flex: 1 1 0; order: 1; }
  .conversation-immersive .conversation-scenario-rail,
  .conversation-immersive .conversation-vocabulary-rail { flex: 0 0 auto; overflow: auto; }
  .conversation-immersive .conversation-vocabulary-rail { order: 2; padding-bottom: env(safe-area-inset-bottom); }
  .conversation-immersive .conversation-rail-body { padding: 16px 20px; }
  .conversation-immersive details { min-height: 0; }
  .conversation-immersive aside details[open] { max-height: 30dvh; overflow-y: auto; }
  .conversation-immersive aside summary { display: flex; min-height: 44px; align-items: center; padding: 8px 20px; cursor: pointer; }
  .conversation-immersive aside details:not([open]) .conversation-rail-body { display: none; }
  .conversation-immersive .conversation-scenario-rail h1 + p,
  .conversation-immersive .conversation-goal { display: block; }
  .conversation-immersive .conversation-composer { padding: 10px 12px; }
  .conversation-immersive .conversation-allowance { font-size: .75rem; margin: 6px 0 0; }
}

.conversation-immersive[data-keyboard] .conversation-scenario-rail,
.conversation-immersive[data-keyboard] .conversation-vocabulary-rail,
.conversation-immersive[data-keyboard] .conversation-thread-panel > header,
.conversation-immersive[data-keyboard] .conversation-allowance { display: none; }
.conversation-immersive[data-keyboard] .conversation-thread-panel { grid-template-rows: minmax(0, 1fr) auto; }
.conversation-immersive[data-keyboard] .conversation-composer { max-height: calc(var(--conversation-height) * .55); }

/* Arabic headings need natural spacing and enough room for vowel marks. */
.conversation-immersive .conversation-scenario-rail h1,
.conversation-immersive .conversation-vocabulary-rail h2 {
  color: var(--theme-text, #192638);
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-transform: none;
  text-align: start;
  max-width: 100%;
  padding-block: 4px;
}
.conversation-immersive .conversation-scenario-rail,
.conversation-immersive .conversation-vocabulary-rail { min-width: 0; }
.conversation-immersive .conversation-scenario-rail summary,
.conversation-immersive .conversation-vocabulary-rail summary { color: var(--theme-text, #192638); text-transform: none; letter-spacing: 0; }
.conversation-immersive .conversation-progress > strong { color: var(--theme-link, #315abd); }
.conversation-immersive .conversation-scenario-label { margin-bottom: 8px; line-height: 1.5; }
.conversation-immersive .conversation-goal { font-family: var(--font-ui); text-align: start; }
@media (max-width: 1000px) {
  .conversation-immersive aside details[open] { max-height: min(26dvh, 210px); }
  .conversation-immersive aside details[open] > summary { position: sticky; top: 0; z-index: 2; }
  .conversation-immersive .conversation-progress { margin-top: 12px; padding-block: 12px; }
}

/* One quiet reading column, with support available on demand in every book. */
.conversation-immersive { --conversation-muted: #b5c2d2; }
.conversation-immersive .conversation-app { max-width: 820px; margin-inline: auto; background: var(--ink); }
.conversation-immersive .conversation-session-nav { min-height: 52px; padding: 8px 20px; border-bottom: 0; background: transparent; font-size: .8125rem; color: var(--conversation-muted); }
.conversation-immersive .conversation-session-nav a,
.conversation-immersive .conversation-session-nav button { display: inline-flex; align-items: center; min-height: 44px; color: var(--conversation-muted); }
.conversation-immersive .conversation-layout { display: flex; flex-direction: column; }
.conversation-immersive .conversation-thread-panel { flex: 1 1 0; order: 1; }
.conversation-immersive .conversation-scenario-rail,
.conversation-immersive .conversation-vocabulary-rail { flex: 0 0 auto; border: 0; background: var(--ink); color: #f1f5fa; }
.conversation-immersive .conversation-vocabulary-rail { order: 2; padding-bottom: env(safe-area-inset-bottom); }
.conversation-immersive aside summary { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; min-height: 44px; background: var(--ink); color: var(--conversation-muted); cursor: pointer; font-family: var(--font-ui); font-size: .8125rem; font-weight: 500; }
.conversation-immersive aside summary::after { color: var(--conversation-muted); font-size: 1rem; }
.conversation-immersive aside details[open] { max-height: min(28dvh, 240px); overflow-y: auto; }
.conversation-immersive aside details[open] > summary { position: sticky; top: 0; z-index: 2; }
.conversation-immersive aside details:not([open]) .conversation-rail-body { display: none; }
.conversation-immersive .conversation-rail-body { padding: 8px 24px 20px; }
.conversation-immersive .conversation-rail-body h1,
.conversation-immersive .conversation-rail-body h2 { color: #f1f5fa; font-family: var(--font-ui); font-size: 1.125rem; line-height: 1.5; text-transform: none; }
.conversation-immersive .conversation-rail-body [lang="ar"] { font-family: var(--font-arabic); line-height: 1.85; }
.conversation-immersive .conversation-rail-body p,
.conversation-immersive .conversation-scenario-rail h1 + p,
.conversation-immersive .conversation-goal,
.conversation-immersive .conversation-vocabulary-rail li span[lang="ar"] { color: var(--conversation-muted); }
.conversation-immersive .conversation-rail-body a { color: #d4deec; }
.conversation-immersive .conversation-eyebrow,
.conversation-immersive .conversation-back-link { display: none; }
.conversation-immersive .conversation-thread-panel > header { min-height: 44px; padding: 4px 24px; border: 0; }
.conversation-immersive .conversation-thread-panel > header h2 { font-family: var(--font-ui); font-size: 1rem; font-weight: 500; text-transform: none; line-height: 1.6; }
.conversation-immersive .conversation-thread-panel > header h2[lang="ar"] { font-family: var(--font-arabic); font-size: 1.2rem; }
.conversation-immersive .conversation-thread-panel > header > span { border: 0; padding: 0; font-size: .75rem; color: var(--conversation-muted); }
.conversation-immersive .conversation-thread { padding: 8px 24px 24px; }
.conversation-immersive .conversation-thread[data-history="false"] .conversation-message-latest { margin: 12px auto; }
.conversation-immersive .conversation-thread[data-history="false"] .conversation-message-meta { display: none; }
.conversation-immersive .conversation-bubble { border: 0; border-radius: 14px; padding: 20px; }
.conversation-immersive .conversation-message-assistant .conversation-bubble { border: 0; padding: 24px 64px 24px 20px; background: #24364b; }
.conversation-immersive .conversation-message-user .conversation-bubble { border: 0; background: transparent; color: var(--conversation-muted); padding: 8px 0; }
.conversation-immersive .conversation-bubble > p { font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.95; }
.conversation-immersive .conversation-message-user .conversation-bubble > p { font-size: 1.1rem; }
.conversation-immersive .conversation-bubble .lesson-audio-button { width: 44px; height: 44px; border: 0; background: transparent; box-shadow: none; }

.conversation-immersive .conversation-bubble .lesson-audio-face { width: 40px; height: 40px; border: 0; background: transparent; color: #dce6f3; box-shadow: none; }
.conversation-immersive .conversation-composer { padding: 12px 24px; background: var(--ink); border-top: 1px solid #344458; }
.conversation-immersive .conversation-suggestions-toggle { border: 0; background: transparent; padding: 8px 0; min-height: 44px; color: var(--conversation-muted); font-size: .875rem; }
.conversation-immersive .conversation-composer form { grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: end; gap: 10px; }
.conversation-immersive .conversation-composer label { border: 1px solid #526278; border-radius: 12px; background: #1f2d3e; padding: 10px 12px; min-height: 64px; }
.conversation-immersive .conversation-composer label > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.conversation-immersive .conversation-composer textarea { resize: none; width: 100%; min-width: 0; border: 0; outline: 0; color: #f1f5fa; background: transparent; font-family: var(--font-arabic); font-size: 1.125rem; line-height: 1.7; max-height: 120px; }
.conversation-immersive .conversation-composer textarea::placeholder { color: #b5c2d2; }
.conversation-immersive .conversation-composer label:focus-within { outline: 2px solid var(--saffron); outline-offset: 2px; }
.conversation-immersive .conversation-send { height: 44px; width: 44px; min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; padding: 10px; background: var(--saffron); color: #14202e; }
.conversation-immersive .conversation-send > span { display: none; }
.conversation-immersive .conversation-composer .lesson-mic { height: 44px; width: 44px; border: 1px solid #526278; background: transparent; box-shadow: none; }
.conversation-immersive .conversation-composer .lesson-mic-face { height: 38px; width: 38px; background: transparent; color: #e0e9f5; box-shadow: none; }
.conversation-immersive .conversation-allowance { color: var(--conversation-muted); font-size: .75rem; margin-top: 8px; gap: 6px 12px; line-height: 1.5; }
.conversation-immersive .conversation-allowance span[lang="ar"] { font-size: .8125rem; }
.conversation-immersive .conversation-progress > strong { color: #c7d5e8; font-size: .8125rem; }
.conversation-immersive .conversation-error { border: 1px solid #80642b; border-radius: 12px; font-size: .875rem; }
.conversation-immersive :is(button, a, summary):focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
.conversation-immersive :is(button, a):hover { filter: brightness(1.12); }
.conversation-immersive ::selection { background: #ffd04d; color: #14202e; }
.conversation-immersive textarea { caret-color: var(--saffron); }
.conversation-immersive * { scrollbar-color: #526278 transparent; scrollbar-width: thin; }
@media (max-width: 600px) {
  .conversation-immersive .conversation-thread { padding-inline: 16px; }
  .conversation-immersive .conversation-composer { padding: 8px 16px; }
  .conversation-immersive .conversation-thread-panel > header,
  .conversation-immersive aside summary { padding-inline: 16px; }
}
.conversation-immersive .conversation-app { min-height: 0; }
.conversation-immersive .conversation-voice-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.conversation-immersive .conversation-voice-control[data-state="listening"] .lesson-mic,
.conversation-immersive .conversation-voice-control[data-state="speaking"] .lesson-mic,
.conversation-immersive .lesson-mic.is-recording { background: #663c37; border-color: #efb6a9; }
.conversation-immersive .conversation-scenario-rail summary,
.conversation-immersive .conversation-vocabulary-rail summary { background: var(--ink); color: var(--conversation-muted); }
.conversation-immersive .conversation-composer .lesson-mic-face { border: 0; }
.conversation-immersive .lesson-mic-label { position: absolute; width: 1px; height: 1px; margin: 0; min-height: 0; overflow: hidden; clip-path: inset(50%); }
.conversation-immersive .microphone-control[data-state="recording"] .lesson-mic { background: #663c37; border-color: #efb6a9; }
.conversation-immersive .conversation-allowance span[lang="ar"] { color: var(--conversation-muted); }

.conversation-immersive .conversation-composer textarea:focus-visible { outline: 0; box-shadow: none; }

/* Restore the original saffron controls and their speaking/listening animation. */
.conversation-immersive .conversation-bubble .lesson-audio-button,
.conversation-immersive .conversation-composer .lesson-mic { border: 1px solid var(--saffron); background: transparent; }
.conversation-immersive .conversation-bubble .lesson-audio-face,
.conversation-immersive .conversation-composer .lesson-mic-face { background: var(--saffron); border: 2px solid var(--saffron); color: var(--ink); }
.conversation-immersive .lesson-audio-button::before,
.conversation-immersive .lesson-mic::before { display: block; }
.conversation-immersive .conversation-composer .lesson-mic.is-listening .lesson-mic-face { background: var(--saffron-pale); transform: scale(1.06); }

.conversation-immersive .conversation-bubble .lesson-audio-face { background: var(--ink-lift); color: var(--saffron); }
.conversation-immersive .conversation-bubble .audio-button-control[data-state="playing"] .lesson-audio-face { background: var(--saffron); color: var(--ink); transform: scale(1.06); }

.conversation-capture-status { display: flex; align-items: center; gap: 12px; color: #dce6f3; font-size: .8125rem; line-height: 1.5; margin-block: 6px; }
.conversation-capture-status:empty { display: none; }
.conversation-capture-status meter { width: 72px; flex: 0 0 72px; accent-color: var(--saffron); }

/* Voice is the default; the keyboard composer is a deliberate alternative. */
.conversation-immersive .conversation-composer { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; border-top: 0; padding-block: 8px 12px; max-height: 44dvh; }
.conversation-immersive .conversation-input-options { grid-column: 2; grid-row: 1; }
.conversation-immersive .conversation-suggestion-area { grid-column: 1; grid-row: 1; }
.conversation-immersive .conversation-composer > :not(.conversation-input-options):not(.conversation-suggestion-area) { grid-column: 1 / -1; }
.conversation-immersive .conversation-composer form[data-input="voice"] { display: flex; justify-content: center; padding-block: 12px; }
.conversation-immersive .conversation-composer form[data-input="text"] { grid-template-columns: minmax(0, 1fr) 44px; }
.conversation-immersive form[data-input="voice"] .lesson-mic { width: 68px; height: 68px; }
.conversation-immersive form[data-input="voice"] .lesson-mic-face { width: 58px; height: 58px; }
.conversation-immersive .conversation-capture-status { justify-content: center; text-align: center; }
.conversation-immersive .conversation-allowance { justify-content: center; text-align: center; margin-block: 0; }
.conversation-immersive .conversation-error { padding: 10px 12px; font-size: .8125rem; line-height: 1.6; margin-block: 4px; }
.conversation-immersive .conversation-thread[data-history="false"] .conversation-message-latest { margin: 12px 0 20px; }
.conversation-immersive .conversation-message-assistant .conversation-bubble { padding: 16px 58px 16px 18px; }
.conversation-immersive .conversation-bubble > p { font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.85; }
.conversation-immersive .conversation-message-user { max-width: 85%; margin-left: auto; }
.conversation-immersive .conversation-message-user .conversation-bubble { padding: 10px 16px; background: #203143; }
.conversation-immersive .conversation-thread-panel > header { min-height: 36px; }
.conversation-immersive .conversation-session-nav { min-height: 44px; padding-block: 0; }

/* Keep the outer viewport anchored; only the reading/support panes scroll. */
.conversation-immersive { overscroll-behavior: none; }
.conversation-immersive .conversation-thread { scroll-behavior: auto; overflow-anchor: none; }
.conversation-immersive .conversation-composer,
.conversation-immersive aside details { overscroll-behavior: contain; }


/* Learner-controlled reading size; controls stay compact at every text size. */
.conversation-text-settings { margin: auto; max-width: calc(100vw - 24px); padding: 20px; border: 1px solid #65758a; border-radius: 16px; color: #f1f5fa; background: #172638; }
.conversation-text-settings::backdrop { background: #0008; }
.conversation-text-settings p { margin: 0 0 12px; }
.conversation-text-settings output { margin-inline-start: 12px; }
.conversation-text-settings > div { display: flex; flex-wrap: wrap; gap: 8px; }
.conversation-text-settings button { min-width: 44px; min-height: 44px; padding: 8px 12px; }
.conversation-text-settings button:disabled { opacity: .45; }
.conversation-immersive .conversation-bubble > p { font-size: calc(clamp(1.25rem, 3vw, 1.65rem) * var(--conversation-text-scale, 1)); overflow-wrap: anywhere; }
.conversation-immersive .conversation-message-user .conversation-bubble > p { font-size: calc(1.1rem * var(--conversation-text-scale, 1)); }
.conversation-immersive .conversation-composer textarea { font-size: calc(1.125rem * var(--conversation-text-scale, 1)); }
.conversation-immersive .conversation-feedback,
.conversation-immersive .conversation-starters button { font-size: calc(1rem * var(--conversation-text-scale, 1)); overflow-wrap: anywhere; }
.conversation-session-nav { gap: 8px; }
@media (max-width: 380px) { .conversation-immersive .conversation-session-nav { padding-inline: 8px; } }
.conversation-immersive .conversation-session-nav > button { min-width: 44px; justify-content: center; }
.book-two-continuation {
  background: var(--cobalt);
  color: #fff;
  padding: 28px clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 32px;
  align-items: center;
}
.book-two-continuation-context { display: flex; gap: 24px; justify-content: space-between; grid-column: 1 / -1; font-size: .875rem; }
.book-two-continuation h2 { font-family: var(--font-ui); font-size: 2rem; line-height: 1.1; margin: 0; }
.book-two-continuation p { color: #fff; font-size: .9375rem; line-height: 1.55; max-width: 65ch; margin: 0; }
.book-two-continuation a { background: var(--saffron); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 12px 20px; font-weight: 700; grid-column: 2; grid-row: 2 / span 2; text-decoration: none; }
.book-two-continuation a:hover { background: var(--saffron-pale); }
.book-two-continuation a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.book-two-continuation a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.book-two-continuation-mobile { display: none; }
@media (max-width: 820px) {
  .book-two-continuation-desktop { display: none; }
  .book-two-continuation-mobile { display: grid; grid-template-columns: minmax(0, 1fr); padding: 22px 20px; gap: 14px; }
  .book-two-continuation-mobile .book-two-continuation-context { gap: 12px; font-size: .875rem; }
  .book-two-continuation-mobile a { grid-column: 1; grid-row: auto; }
}
.speaking-practice-page { min-height: 100svh; background: var(--theme-canvas); color: var(--theme-text); }
.speaking-practice-picker { max-width: 640px; margin: 0 auto; padding: 56px 24px; }
.speaking-practice-picker h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.2; margin: 0 0 16px; }
.speaking-practice-picker p { color: var(--theme-muted); line-height: 1.6; }
.speaking-practice-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.speaking-practice-fields label { display: grid; gap: 8px; }
.speaking-practice-fields select { width: 100%; min-height: 52px; padding: 12px; border: 1px solid var(--theme-border); border-radius: 8px; background: var(--theme-surface); color: var(--theme-text); font: inherit; font-size: 1rem; }
.speaking-practice-start { display: flex; justify-content: center; align-items: center; min-height: 52px; background: var(--cobalt); color: white; border-radius: 10px; padding: 12px 24px; font-weight: 600; }
.speaking-practice-picker .speaking-practice-note { font-size: .875rem; margin-top: 20px; }
.speaking-practice-picker :is(a,select):focus-visible { outline: 2px solid var(--theme-link); outline-offset: 4px; }
