/* Fusha is scoped to this route. The rest of uzair.dev is intentionally untouched. */
body:has(.fusha-mount) { background-image: none !important; }
.page-shell:has(.fusha-mount) { width: min(1408px, calc(100% - 64px)); padding-block: 30px 48px; }
body:has(.fusha-mount) .header-inner { width: min(1408px, calc(100% - 64px)); }
.fusha-mount { --f-paper:#17202f; --f-bubble:#1d2b45; --f-user:#302a20; --f-border:#8796ad; --f-panel-border:#344158; --f-primary:#315bd6; --f-button-text:#fff; color:var(--text,#202a3b); font:15px/1.65 var(--font-sans,system-ui,sans-serif); }
:root[data-theme="light"] .fusha-mount { --f-paper:#fff; --f-bubble:#edf3ff; --f-user:#fff6e5; --f-border:#8391a6; --f-panel-border:#d6dfed; }
.fusha-mount *, .fusha-mount *::before, .fusha-mount *::after { box-sizing:border-box; }
.fusha-mount p { margin:0; }
.fusha-mount button,.fusha-mount input,.fusha-mount select,.fusha-mount textarea { font:inherit; }
.fusha-mount button { cursor:pointer; }
.fusha-mount button:disabled { cursor:not-allowed; opacity:.53; }
.fusha-mount :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible { outline:3px solid var(--focus,#315bd6); outline-offset:3px; border-radius:4px; }
.fusha-mount a { color:var(--accent,#315bd6); text-underline-offset:3px; }
.fusha-mount button { transition:background-color 160ms,color 160ms,border-color 160ms; }
.f-icon { flex:0 0 auto; vertical-align:middle; }
.f-ar { font-family:'Noto Naskh Arabic','Geeza Pro','Traditional Arabic',Arial,serif; font-size:26px; font-weight:400; line-height:1.9; letter-spacing:normal; overflow-wrap:anywhere; }
.f-sr { position:absolute; height:1px; width:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.f-layout { display:grid; grid-template-columns:210px minmax(0,1fr) 284px; align-items:start; gap:24px; }
.f-left,.f-conversation,.f-right { min-width:0; }
.f-back { display:inline-flex; align-items:center; gap:9px; font-size:13px; min-height:36px; text-decoration:none; margin-bottom:20px; }
.f-identity { display:flex; gap:14px; align-items:center; }
.f-identity>.f-icon { color:var(--accent); }
.f-identity>div { display:flex; align-items:baseline; gap:12px; }
.f-identity h1 { font-family:Georgia,serif; font-size:31px; font-weight:500; letter-spacing:-.035em; }
.f-dot { color:var(--amber); }
.f-title-ar { color:var(--accent); font-size:24px; }
.f-intro { margin-top:11px !important; line-height:1.65; }
.f-left>.f-small { margin-top:10px; }
.f-small { font-size:12px; line-height:1.75; }
.f-muted { color:var(--muted,#59677d); }
.f-fieldset { border:0; padding:0; margin:25px 0 0; min-width:0; }
.f-fieldset legend { font-size:12px; font-weight:650; padding:0; margin-bottom:9px; }
.f-levels { display:grid; grid-template-columns:1fr; gap:5px; }
.f-levels button,.f-scenarios button { font-size:13px; text-align:left; background:transparent; border:1px solid transparent; min-height:42px; border-radius:6px; padding:8px 12px; color:var(--muted); }
.f-levels button:hover,.f-scenarios button:hover { background:var(--surface); color:var(--text); }
.f-levels .is-active,.f-scenarios .is-active { color:var(--accent); background:var(--accent-soft); border-color:var(--accent); font-weight:550; }
.f-levels button.is-active::after { content:'\2022'; float:right; font-size:15px; }
.f-fieldset>p { margin-top:8px; }
.f-scenarios button { display:flex; align-items:center; gap:12px; width:100%; margin-bottom:6px; }
.f-options { display:grid; gap:8px; margin-top:22px; border-top:1px solid var(--line); padding-top:20px; font-size:12px; }
.f-options label:has(input) { display:flex; gap:9px; align-items:center; min-height:36px; }
.f-options input { width:17px; height:17px; accent-color:var(--accent-strong); }
.f-options select { background:var(--f-paper); color:var(--text); border:1px solid var(--f-border); min-height:40px; border-radius:5px; padding:6px 10px; width:100%; }
.f-progress-note { border-top:1px solid var(--line); margin-top:22px !important; padding-top:17px; font-size:11px; color:var(--muted); }
.f-conversation { border:1px solid var(--f-panel-border); border-radius:10px; background:var(--f-paper); overflow:hidden; }
.f-lesson-header { display:flex; gap:13px; padding:24px 24px 18px; align-items:flex-start; }
.f-lesson-icon { color:var(--accent); padding-top:3px; }
.f-lesson-header h2 { font-family:Georgia,serif; font-size:25px; font-weight:500; line-height:1.25; letter-spacing:-.02em; }
.f-lesson-header p { color:var(--muted); font-size:12px; line-height:1.7; margin-top:7px; }
.f-level-tag { margin-left:auto; font-size:11px; white-space:nowrap; color:var(--accent); background:var(--accent-soft); padding:5px 9px; border-radius:15px; }
.f-step-track { display:flex; align-items:center; gap:14px; padding:0 24px 13px; border-bottom:1px solid var(--line); color:var(--muted); font-size:11px; }
.f-step-track>span { white-space:nowrap; }
.f-step-track progress { min-width:25px; height:4px; border:0; appearance:none; flex:1; border-radius:4px; overflow:hidden; color:var(--accent); background:var(--line); }
.f-step-track progress::-webkit-progress-bar { background:var(--line); }
.f-step-track progress::-webkit-progress-value { background:var(--accent); }
.f-step-track progress::-moz-progress-bar { background:var(--accent); }
.f-step-track .f-btn { min-height:32px; font-size:11px; padding:4px; }
.f-messages { list-style:none; margin:0; padding:25px 24px; min-height:250px; max-height:500px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; display:flex; flex-direction:column; gap:20px; }
.f-message { padding:13px 17px 15px; width:fit-content; max-width:96%; border-radius:12px 12px 12px 3px; background:var(--f-bubble); animation:f-message-in 180ms ease; }
.f-learner { margin-left:auto; background:var(--f-user); border-radius:12px 12px 3px 12px; }
.f-message-label { font-size:10px; color:var(--muted); margin-bottom:5px; }
.f-message-body { display:flex; align-items:center; gap:13px; }
.f-message-body .f-ar { flex:1; min-width:0; }
.f-translation { font-size:13px; margin-top:5px !important; color:var(--muted); }
.f-source { display:block; font-size:10px; margin-top:7px; color:var(--muted); }
.f-icon-btn { display:inline-grid; place-items:center; min-width:36px; min-height:36px; background:transparent; border:1px solid transparent; border-radius:50%; color:var(--accent); padding:6px; flex:0 0 auto; }
.f-icon-btn:hover:not(:disabled) { background:var(--accent-soft); border-color:var(--accent); }
.f-composer { border-top:1px solid var(--line); padding:17px 24px 19px; }
.f-composer-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.f-composer-heading label { font-size:13px; font-weight:650; }
.f-goal { font-size:12px; color:var(--muted); margin-bottom:12px !important; }
.f-composer textarea { display:block; width:100%; min-height:98px; max-height:250px; resize:vertical; border:1px solid var(--f-border); border-radius:7px; padding:12px 14px; color:var(--text); background:var(--f-paper); font:23px/1.8 'Noto Naskh Arabic','Geeza Pro','Traditional Arabic',Arial,serif; }
.f-composer textarea::placeholder { color:var(--muted); opacity:1; }
.f-composer textarea[readonly] { background:var(--f-bubble); }
.f-meaning { font-size:12px; color:var(--text); min-height:65px; padding:12px 0 10px; line-height:1.8; overflow-wrap:anywhere; }
.f-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-top:14px; }
.f-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; border:1px solid transparent; border-radius:6px; padding:9px 12px; font:500 12px/1.4 var(--font-sans,system-ui,sans-serif)!important; text-decoration:none; }
.f-primary { color:var(--f-button-text); background:var(--f-primary); border-color:var(--f-primary); }
.f-primary:hover:not(:disabled) { background:#2448b8; border-color:#2448b8; }
.f-secondary { border-color:var(--f-border); background:var(--f-paper); color:var(--accent); }
.f-secondary:hover:not(:disabled) { background:var(--accent-soft); border-color:var(--accent); }
.f-quiet { background:transparent; color:var(--accent); padding-inline:5px; }
.f-quiet:hover:not(:disabled) { text-decoration:underline; }
.f-skip { margin-left:auto; font-size:10px!important; max-width:160px; text-align:left; }
.f-recording { background:var(--amber-soft); color:var(--amber); border-color:var(--amber); }
.f-recording .f-icon { animation:f-listening 1.2s ease infinite; }
.f-hint { padding:13px; border-left:2px solid var(--amber); background:var(--amber-soft); margin-block:12px; }
.f-hint>p:first-child { font-size:12px; }
.f-hint-example { display:flex; flex-direction:column; width:100%; text-align:left; background:transparent; border:0; border-bottom:1px solid var(--line); padding:8px 0; color:var(--text); }
.f-hint-example .f-ar { font-size:22px; align-self:flex-start; }
.f-hint-example>span:last-child { font-size:12px; color:var(--muted); }
.f-hint-example:hover { color:var(--accent); }
.f-hint>.f-small { margin-top:10px; }
.f-notice { font-size:12px; color:var(--muted); line-height:1.75; padding-inline:24px; }
.f-notice:not(:empty) { padding-block:0 20px; }
.f-mode-note { margin-top:15px !important; }
.f-consent { margin:0 24px 24px; padding:17px; border:1px solid var(--amber); border-radius:6px; background:var(--amber-soft); }
.f-consent h3 { font-size:15px; margin:0 0 7px; }
.f-consent p { font-size:12px; line-height:1.8; }
.f-completion { padding:25px; border-top:1px solid var(--line); }
.f-completion-icon { display:inline-flex; color:var(--amber); margin-bottom:12px; }
.f-completion h3 { font-size:22px; font-family:Georgia,serif; font-weight:500; margin:0 0 12px; }
.f-completion p { color:var(--muted); font-size:13px; }
.f-right { display:flex; flex-direction:column; gap:18px; }
.f-lookup,.f-saved { border:1px solid var(--f-panel-border); border-radius:9px; background:var(--f-paper); padding:20px; }
.f-right h2 { display:flex; align-items:center; gap:9px; font-size:15px; font-weight:600; margin:0 0 12px; letter-spacing:0; }
.f-right h2 .f-icon { color:var(--accent); }
.f-right h2>span { font-size:12px; margin-left:auto; color:var(--muted); font-weight:400; }
.f-lookup-form { display:flex; gap:8px; margin-block:15px 14px; }
.f-lookup-form input { width:100%; min-width:0; height:43px; border:1px solid var(--f-border); background:var(--f-paper); color:var(--text); border-radius:6px; padding:8px 10px; font-size:13px; }
.f-lookup-form input::placeholder { color:var(--muted); }
.f-search-btn { flex:0 0 43px; min-width:43px; padding:8px; }
.f-external-link { display:inline-flex; align-items:center; gap:5px; flex-wrap:wrap; margin-top:9px; font-size:11px; }
.f-word-top { display:flex; justify-content:space-between; align-items:center; margin-top:17px; }
.f-word-top .f-ar { font-size:32px; }
.f-word>p { font-size:13px; }
.f-example { margin-top:17px; border-top:1px solid var(--line); padding-top:13px; }
.f-label { font-size:10px; color:var(--muted); }
.f-example>.f-ar { display:block; text-align:left; font-size:23px; margin-top:5px; }
.f-example p { font-size:12px; color:var(--muted); margin-top:5px; }
.f-word-actions { display:flex; gap:8px; margin-top:16px; }
.f-word-actions .f-btn { font-size:11px!important; }
.f-suggestions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.f-suggestions button { color:var(--accent); font-size:11px; border:0; border-bottom:1px solid var(--line); padding:6px 2px; min-height:32px; background:none; }
.f-suggestions button:hover { border-color:var(--accent); }
.f-saved ul { list-style:none; padding:0; margin:0; max-height:260px; overflow-y:auto; }
.f-saved li { display:flex; align-items:center; border-top:1px solid var(--line); }
.f-word-select { display:flex; flex-direction:column; flex:1; align-items:flex-start; border:0; padding:8px 0; text-align:left; color:var(--text); background:none; min-width:0; }
.f-word-select .f-ar { font-size:22px; }
.f-word-select>span:last-child { font-size:11px; color:var(--muted); }
.f-support,.f-about-tool { border-top:1px solid var(--line); padding-top:12px; color:var(--muted); }
.f-support summary,.f-about-tool summary { color:var(--text); cursor:pointer; font-size:12px; min-height:36px; }
.f-support-body>p,.f-about-tool>p { margin-block:11px; }
.f-support-body>p { font-size:12px; }
.f-support-body strong { color:var(--text); font-weight:550; }
.f-about-tool .f-btn { text-align:left; font-size:11px!important; }
@keyframes f-message-in { from { opacity:.65; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
@keyframes f-listening { 50% { opacity:.45; } }
@media (max-width:1150px) { .f-layout { grid-template-columns:180px minmax(0,1fr) 250px; gap:16px; } .f-lesson-header { padding:20px 17px 12px; flex-wrap:wrap; } .f-lesson-header>div { flex:1; } .f-level-tag { margin-left:38px; } .f-step-track,.f-messages { padding-inline:17px; } .f-composer { padding-inline:17px; } .f-lookup,.f-saved { padding:15px; } .f-lesson-header h2 { font-size:22px; } .f-skip { margin-left:0; } }
@media (max-width:920px) { .f-layout { grid-template-columns: minmax(0,1fr) 264px; } .f-left { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; column-gap:30px; } .f-back,.f-identity,.f-left>.f-intro,.f-left>.f-small { grid-column:1/-1; } .f-back { margin-bottom:12px; } .f-intro { margin-top:5px!important; } .f-left>.f-small { margin-top:4px; } .f-fieldset { margin-top:18px; } .f-levels { grid-template-columns:repeat(2,minmax(0,1fr)); } .f-levels button { font-size:11px; padding-inline:6px; text-align:center; } .f-levels button.is-active::after { display:none; } .f-options { margin-top:15px; padding-top:10px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; grid-column:1/-1; } .f-options select { width:auto; } .f-progress-note { grid-column:1/-1; margin-top:10px!important; padding-top:7px; border:0; } .f-identity h1 { font-size:33px; } }
@media (max-width:650px) { .page-shell:has(.fusha-mount), body:has(.fusha-mount) .header-inner { width:calc(100% - 32px); } .page-shell:has(.fusha-mount) { padding-top:18px; } .f-layout { display:flex; flex-direction:column; gap:20px; } .f-left,.f-conversation,.f-right { width:100%; } .f-left { grid-template-columns:1fr; display:block; } .f-levels { grid-template-columns:repeat(2,minmax(0,1fr)); } .f-levels button { min-height:44px; font-size:12px; } .f-scenarios { display:flex; gap:6px; flex-wrap:wrap; } .f-scenarios legend { width:100%; } .f-scenarios button { width:auto; flex:1 1 120px; padding:8px; font-size:11px; margin:0; min-height:44px; } .f-scenarios .f-icon { width:17px; height:17px; } .f-progress-note { margin-top:10px!important; } .f-lesson-header { padding-top:19px; } .f-messages { min-height:200px; max-height:330px; padding:18px 14px; } .f-message { padding:11px 12px; } .f-message .f-ar { font-size:24px; } .f-composer { padding:13px 14px 18px; } .f-btn,.f-icon-btn { min-height:44px; } .f-icon-btn { min-width:40px; } .f-skip { flex:1 1 100%; max-width:100%; justify-content:flex-start; } .f-lesson-header h2 { font-size:22px; } .f-level-tag { margin-left:0; } .f-options { flex-wrap:wrap; } .f-notice { padding-inline:14px; } .f-consent { margin-inline:14px; } .f-right { gap:16px; } .f-lookup,.f-saved { padding:20px; } }
@media (prefers-reduced-motion:reduce) { .fusha-mount *, .fusha-mount *::before, .fusha-mount *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media (forced-colors:active) { .f-levels .is-active,.f-scenarios .is-active,.f-primary { border:2px solid ButtonText; } .f-message { border:1px solid CanvasText; } }

/* Keep phone navigation compact and provide a direct path to word help. */
.f-mobile-word-link { display:none; }
@media (max-width:650px) {
  .f-mobile-word-link { display:inline; margin-left:8px; }
  .f-left>.f-small { font-size:11px; }
  .f-left .f-back { margin-bottom:8px; }
  .f-left .f-fieldset { margin-top:13px; }
  .f-left .f-options { margin-top:12px; padding-top:8px; }
  .f-left .f-progress-note { display:none; }
}
@media (max-width:500px) {
  body:has(.fusha-mount) .header-inner { grid-template-columns:minmax(0,1fr) 34px 34px; min-height:97px; padding-top:14px; gap:7px 10px; }
  body:has(.fusha-mount) .header-inner .wordmark { grid-column:1; grid-row:1; }
  body:has(.fusha-mount) .header-inner .rss-link { grid-column:2; grid-row:1; }
  body:has(.fusha-mount) .header-inner .theme-toggle { grid-column:3; grid-row:1; }
  body:has(.fusha-mount) .header-inner nav { grid-column:1/-1; grid-row:2; }
}

/* Expanded catalog: 15 situations, with four levels; keep the conversation in view. */
.f-levels { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.f-levels button { text-align:center; font-size:11px; padding:7px 5px; min-height:44px; }
.f-levels button.is-active::after { display:none; }
.f-catalog-search { display:flex; align-items:center; gap:7px; border:1px solid var(--f-border); border-radius:6px; padding:0 9px; color:var(--muted); background:var(--f-paper); }
.f-catalog-search input { width:100%; min-width:0; border:0; color:var(--text); background:transparent; font-size:12px; height:40px; padding:6px 0; }
.f-catalog-search input::placeholder { color:var(--muted); opacity:1; }
.f-catalog-count { color:var(--muted); font-size:10px; padding-block:8px 5px; }
.f-scenario-scroll { max-height:328px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--f-border) transparent; padding:4px 5px 4px 4px; margin-left:-4px; }
.f-scenario-group h3 { color:var(--muted); font-size:10px; font-weight:600; line-height:1.5; letter-spacing:.01em; margin:12px 0 6px 4px; }
.f-scenario-group:first-child h3 { margin-top:0; }
.f-scenarios .f-scenario-group button { margin-bottom:4px; gap:9px; padding:9px 8px; font-size:12px; min-height:42px; }
.f-catalog-mobile { display:none; }
.f-catalog-mobile select { background:var(--f-paper); color:var(--text); width:100%; max-width:100%; min-height:44px; font-size:13px; border:1px solid var(--f-border); border-radius:6px; padding:8px 10px; }
.f-catalog-mobile p { margin-top:7px; }
.f-self-review { padding:16px 0; margin-block:15px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.f-self-review h4 { margin:0 0 10px; font-size:13px; font-weight:600; }
.f-self-review ul { padding-left:18px; font-size:12px; color:var(--muted); margin-block:0 10px; }
.f-self-review li { margin-bottom:6px; }
@media (max-width:920px) {
  .f-scenario-scroll { max-height:180px; }
}
@media (max-width:650px) {
  .f-catalog-desktop { display:none; }
  .f-catalog-mobile { display:block; width:100%; }
  .f-scenarios { display:block; }
  .f-levels { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .f-levels button { font-size:12px; }
}
